what is the defrenece between structure and union

Answer Posted / nayanprakash

union is better then structure.union is declared with
keyword union.it can store more data which can store at
hights byte of veeriable is declared.structure is declred
a keyword struct.it will store for indivisul memory space.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program in c language to print your bio-data on the screen by using functions.

6514


What is the mean of function?

843


Do character constants represent numerical values?

1061


How can I pad a string to a known length?

783


write a program to copy the string using switch case?

2602


When is a null pointer used?

821


What are extern variables in c?

730


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1734


What is the use of a ‘’ character?

798


What are the different categories of functions in c?

860


Write programs for String Reversal & Palindrome check

784


What is putchar() function?

835


What does c mean in basketball?

745


How can you determine the size of an allocated portion of memory?

983


What is the concatenation operator?

807