Explain the difference between struct and union.

Answers were Sorted based on User's Feedback



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

Explain the difference between struct and union...

Answer / glibwaresoftsolutions

• 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

convert 0.9375 to binary

2 Answers   CTS, TANCET,


write a program fibonacci series and palindrome program in c

0 Answers   Aditi Placement Service,


how to create duplicate link list using C???

0 Answers  


What is FIFO?

3 Answers  


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

0 Answers  


What are the different types of C instructions?

0 Answers   InterGraph,


main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?

12 Answers   Tech Mahindra,


Where static variables are stored in c?

0 Answers  


What is wrong with this program statement?

0 Answers  


what is a static function

10 Answers   Satyam,


what is the diff b/w static and non static variables in C. Give some examples plz.

3 Answers   Wipro,


What is the purpose of realloc()?

0 Answers  


Categories