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

Explain is it valid to address one element beyond the end of an array?

930


What does c mean in standard form?

828


Write programs for String Reversal & Palindrome check

782


What is the general form of function in c?

786


Explain output of printf("Hello World"-'A'+'B'); ?

1162


Explain function?

851


Explain 'far' and 'near' pointers in c.

884


What is c programming structure?

811


Explain the Difference between the New and Malloc keyword.

868


Describe the modifier in c?

850


What is .obj file in c?

829


What is volatile variable how do you declare it?

744


What is the purpose of sprintf() function?

800


C program to find all possible outcomes of a dice?

2051


Why #include is used in c language?

781