which one is better structure or union?(other than the
space occupied )
Answer Posted / nishit jain
There is no question of which one is better. Both are there
for different functionality. Structures find more usage in
day-today programming, while unions are used less often.
There are examples where structure may not solve the purpose
but unions will work without much effort. Example :
packing-unpacking of data can be done using unions easily.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
State the difference between realloc and free.
What does volatile do?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What does sizeof return c?
What is c programing language?
write an algorithm to display a square matrix.
Why is it that not all header files are declared in every C program?
C language questions for civil engineering
Where does the name "C" come from, anyway?
Hi can anyone tell what is a start up code?
What are the different data types in C?
What does 3 periods mean in texting?
What is the difference between array and structure in c?
Explain the use of 'auto' keyword
What is calloc malloc realloc in c?