What are the properties of union in c?



What are the properties of union in c?..

Answer / Avinash Tiwari

In C, a union is a user-defined data type that allows multiple variables to share the same memory location. The size of a union is equal to the size of its largest member, and only one member can be accessed at any given time.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is null character in c?

1 Answers  


write a program in c language to print your bio-data on the screen by using functions.

6 Answers   College School Exams Tests, IBM,


What is the difference between local variable and global variable in c?

1 Answers  


SIR PLS TELL ME THE CODE IN C LANGUAGE TO PRINT THE FOLLOWING SERIES 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 2 1 1 2 1 1

4 Answers  


Why does everyone say not to use scanf? What should I use instead?

1 Answers  


Why is c so important?

1 Answers  


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

6 Answers   LG Soft, Satyam, Tech Mahindra,


Is there a way to switch on strings?

1 Answers  


print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5

3 Answers   Winit,


What is the difference between realloc() and free()

1 Answers  


wap in c to accept n number display the highest and lowest value

2 Answers  


How do I use strcmp?

1 Answers  


Categories