Explain the difference between struct and union.



Explain the difference between struct and union...

Answer / nashiinformaticssolutions

• Struct: All members occupy separate memory.
• Union: All members share the same memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Can we write a program without main() function?

9 Answers  


What is atoi and atof in c?

0 Answers  


what is a void pointer?

2 Answers  


What does extern mean in a function declaration?

4 Answers  


Explain about the functions strcat() and strcmp()?

0 Answers  






What is void main ()?

0 Answers  


int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ?

15 Answers   Mascot,


Why c is known as a mother language?

0 Answers  


How many levels of pointers have?

0 Answers  


Explain how can you avoid including a header more than once?

0 Answers  


what is diference between return 0 and return NULL??

3 Answers  


Explain the concept and use of type void.

0 Answers  


Categories