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
What does the characters “r” and “w” mean when writing programs that will make use of files?
is it possible to create your own header files?
Which is better between malloc and calloc?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
How can you tell whether two strings are the same?
Are the variables argc and argv are always local to main?
How do I use strcmp?
Explain the binary height balanced tree?
What is the use of getch ()?
What is a constant and types of constants in c?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is the use of static variable in c?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What are operators in c?
show how link list can be used to repersent the following polynomial i) 5x+2