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 the program for prime numbers?

73 Answers   Accenture, Aptech, Infosys, TCS,


what will be the output of the following program, justify? #define TEST int TEST getdata() { static i; i+=10; return i; } main() { int k; k = getdata(); }

3 Answers  


int i=0,j; j=++i + ++i ++i; printf(" %d",j);

2 Answers   ME,


What is the difference between CV and Resume ?

2 Answers  


Can we access the array using a pointer in c language?

0 Answers  






Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.

0 Answers  


How are Structure passing and returning implemented by the complier?

0 Answers   TISL,


Do you know the use of 'auto' keyword?

0 Answers  


what do u mean by Direct access files? then can u explain about Direct Access Files?

0 Answers   LG Soft,


What is the difference between struct and union in C?

1 Answers  


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

0 Answers   InterGraph,


 Illustrate it   summing the series 2+4+6+......to n terms using  (i) while loop (ii) do-while loop

2 Answers  


Categories