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 that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1851


Write a code on reverse string and its complexity.

612


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1129


How pointers are declared?

567


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1451






When should a type cast not be used?

628


How does pointer work in c?

623


Explain the difference between malloc() and calloc() function?

604


Why cant I open a file by its explicit path?

597


Can a program have two main functions?

575


What are dangling pointers in c?

650


Explain spaghetti programming?

685


Why void main is used in c?

564


What do mean by network ?

661


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1720