C Language - Structures,Unions

You Are Here :: Home > C Language > Structures,Unions General Questions

 
13.

struct x { int y; struct x next;} *head;

struct x *w=head; What does *w represent?

A. Something of type pointer. B. Something of type struct x.
C. The same as *head. D. B and C




14.

struct x { int y; struct x next;} *head;

struct x *w=head; What does &head represent?

A. The same as &w. B. The address of the variable head.
C. The address of the beginning of the linked list. D. all of the above




15.

Difference between structure and union is

A. We can define functions within structures but not within a union B. We can define functions within union but not within a structure
C. The way memory is allocated D. There is no difference




16.

To access the members of structure which symbol is used

A. * B. -
C. , D. .




17.

Structures can be used

A. to hold different datatypes B. have pointers to structures
C. to assign to one another D. all of above




18.

Which of the following operators can be applied on structure variables?

A. Equality comparison ( == ) B. Assignment ( = )
C. Both of the above D. None of the above




« previous

1

2

3

4

5

6

7

8

9

...

next »

 
 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on