C - Structures and Unions

page 1 out of 3

page 1 out of 3


Question 1     

Which of the following are themselves a collection of different data types?






Question 2     

User-defined data type can be derived by






Question 3     

Which operator connects the structure name to its member name?






Question 4     

Which of the following cannot be a structure member?






Question 5     

What is the output of this C code?

#include <stdio.h>
    struct student    {  
      int no;
        char name[20];
   }
    void main()    {
        struct student s;
        s.no = 8; 
printf("hello");    
}





Question 6     

What will be the size of the following structure?

#include <stdio.h>
struct temp
{
     int a[10];
     char p;
};





Question 7     

7. Which among the following is never possible in C when members in a structure are same as that in a union?

 //Let P be a structure
//Let Q be a union







Question 10     

Presence of code like “s.t.b = 10” indicates





page 1 out of 3

page 1 out of 3


Sign Up Page

Oops!!

To view the solution need to Login



Score : 0 / 0
L
o
a
d
i
n
g
.
.
.