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

1.)how to find d most repeated word in a string? string ="how do you do"?? output should be do

1 Answers   AAS, Nagarro, Vuram,


How to write a multi-statement macro?

0 Answers  


Explain what is the concatenation operator?

0 Answers  


I have an array of 100 elements, each of which is a random integer. I want to know which of the elements: a) are multiples of 2 b) are multiples of 2 AND 5 c) have a remainder of 3 when divided by 7

1 Answers  


Why Modern OS are interrupt driven?Give an example

3 Answers  


what is recursion in C

0 Answers   Cap Gemini,


what are two kinds of java

2 Answers  


write a c program to find the probability of random numbers between 1-1000

0 Answers   ADS,


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

0 Answers   Wilco,


Why dont c comments nest?

0 Answers  


What is c variable?

0 Answers  


What is printf () in c?

0 Answers  


Categories