what is the defrenece between structure and union

Answer Posted / renuka

structure is declared with the keyword struct and structure
variables occupy individual memory location.But Unoin is
declared with the keyword union and its variables are
allocated to a memory at which the highest byte of the
variable is declared.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are run-time errors?

594


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

625


What is equivalent to ++i+++j?

639


Do you know the difference between exit() and _exit() function in c?

603


Explain what is the difference between text files and binary files?

606






What does. int *x[](); means ?

627


Why is c called c?

618


Explain how do you print only part of a string?

642


How can I ensure that integer arithmetic doesnt overflow?

602


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1444


What is the correct code to have following output in c using nested for loop?

605


How many levels of pointers have?

585


How many bytes is a struct in c?

719


Where does the name "C" come from, anyway?

639


What is union and structure?

567