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 are predefined functions in c?
What is typeof in c?
What are header files? What are their uses?
What is function definition in c?
What is action and transformation in spark?
Why can’t constant values be used to define an array’s initial size?
What is s in c?
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
When should a type cast be used?
How many levels of pointers have?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is a buffer in c?
How a string is stored in c?
What are shell structures used for?
How do you generate random numbers in C?