what is the defrenece between structure and union
Answer Posted / kapildalke
Thanks for these answer renuka..............
it means that
struct student
{
int i;
char a,b;
}
it occupy 4 bytes of memory..........
and in case of union
union student
{
int i;
char a,b;
}
it occupies only 2 byte memory.............
Am i write or wrong
| Is This Answer Correct ? | 21 Yes | 0 No |
Post New Answer View All Answers
What is the difference between malloc() and calloc() function in c language?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
Why do we need functions in c?
What is context in c?
Is exit(status) truly equivalent to returning the same status from main?
What is the difference between %d and %i?
Why we write conio h in c?
write a program for the normal snake games find in most of the mobiles.
What is the best way to store flag values in a program?
Can I initialize unions?
What are the advantage of c language?
What is a macro?
What are the back slash character constants or escape sequence charactersavailable in c?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is the use of header?