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

What is clrscr in c?

0 Answers  


plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 Answers  


What is #define in c?

0 Answers  


What is huge pointer in c?

0 Answers  


How can I find leaf node with smallest level in a binary tree?

1 Answers  


long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes

18 Answers   Acropolis, HCL, Intel, TCS,


When do you say that a digraph is acyclic A)if and only if its first search does not have back arcs B)a digraph is acyclic if and only if its first search does not have back vertices C)if and only if its first search does not have same dfnumber D)None of these

1 Answers   Accenture, IBM,


Explain what does it mean when a pointer is used in an if statement?

0 Answers  


What is the use of typedef in c?

0 Answers  


a program that can input number of records and can view it again the record

0 Answers   Accenture,


What is omp_num_threads?

0 Answers  


What is action and transformation in spark?

0 Answers  


Categories