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
How old is c programming language?
What is c definition?
Which function in C can be used to append a string to another string?
Why is c called a structured programming language?
What is mean by data types in c?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is ctrl c called?
What is pre-emptive data structure and explain it with example?
What is difference between arrays and pointers?
How do you print an address?
Write a program to swap two numbers without using third variable in c?
Explain about the constants which help in debugging?
How will you divide two numbers in a MACRO?
Is it possible to pass an entire structure to functions?
Is c is a low level language?