diff .between strcture and union

Answers were Sorted based on User's Feedback



diff .between strcture and union..

Answer / sruthy

union allocates the memory equal to the maximum memory
required by the member of the union but structure allocates
the memory equal to the total memory required by the members

Is This Answer Correct ?    8 Yes 0 No

diff .between strcture and union..

Answer / revathi pawar

structure is the set of different datatype whereas the
struct is the keyword
union is the one where will not print or give correct ouptut
whereas it will give the address of tat particular string or
no given
union s the keyword

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More C Interview Questions

write a fuction for accepting and replacing lowercase letter to'Z' with out using inline function.

5 Answers   Temenos,


main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail

6 Answers   TCS,


What does 2n 4c mean?

0 Answers  


write a program wch produces its own source code aas its output?

1 Answers   IonIdea,


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

0 Answers  






Can you return null in c?

0 Answers  


is compiler do read the data line by line or not. ??

6 Answers   LG Soft, Satyam, Tech Mahindra,


What is the difference between class and object in c?

0 Answers  


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

0 Answers   Subex,


Why ordinary variable store only one value  

0 Answers  


CopyBits(x,p,n,y) copy n LSBs from y to x starting LSB at 'p'th position.

9 Answers   Adobe,


What are the 3 types of structures?

0 Answers  


Categories