what are the advantages & disadvantages of unions?

Answer Posted / vadivelt

Main disadvantage is, all the union member variables cannot
be initialised or used with different values at a time.

Is This Answer Correct ?    45 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program which returns the first non repetitive character in the string?

690


What are Macros? What are its advantages and disadvantages?

750


What is the scope of global variable in c?

643


i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....

1612


What is the acronym for ansi?

723






Under what circumstances does a name clash occur?

791


What are the advantages of Macro over function?

1426


#include { printf("Hello"); } how compile time affects when we add additional header file .

1519


What is class and object in c?

685


Why does everyone say not to use gets?

705


Are c and c++ the same?

707


What is gets() function?

762


How can you restore a redirected standard stream?

700


Whats s or c mean?

685


How to write a code for reverse of string without using string functions?

1689