Time Left - 15:00 mins

User Defined Datatypes I Starter Quiz

Attempt now to get your rank among 157 students!

Question 1

The data elements in the structure are also known as?

Question 2

Consider the following C declaration

struct {

short s [5]

union {

float y;

long z;

}u;

} t;

Assume that objects of the type short, float and long occupy 2 bytes, 4 bytes and 8 bytes, respectively. The memory requirement for variable t, ignoring alignment considerations, is

Question 3

Assume that size of an integer is 32 bit. What is the output of following program?

Question 4

Choose a correct statement about C structure elements.

Question 5

What is the size of a C structure?

Question 6

Choose a correct statement about C structures ?

Question 7

What will be the output of the following code when executed?

  • 157 attempts
  • 1 upvote
  • 0 comments
Aug 5GATE & PSU CS