what is the difference between structure and union?
Answer Posted / karthikeyan
union is unified memory where structure is non unified memory.
all members of structure occupy consecutive chunks of
memory.but union members will share the most highest memory
of the union member.i.e data type.
we can access all the members of structure at a time.
but in union we can access a single union member at a time.
regards,
karthikeyan,
TRIOZTECH
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Explain how do you generate random numbers in c?
Why is main function so important?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
Explain threaded binary trees?
What are pointers? Why are they used?
What are different types of pointers?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is the process of writing the null pointer?
Explain the meaning of keyword 'extern' in a function declaration.
What is a pointer on a pointer in c programming language?
Explain how can I write functions that take a variable number of arguments?
Explain 'bit masking'?
Define VARIABLE?
How old is c programming language?