What size is allocated to the union variable?



What size is allocated to the union variable?..

Answer / Shivani Kanojiya

The size of a union variable is equal to the size of the largest data type it can hold.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What are built-in functions? What is the syntax for the definition?

1 Answers  


What type of question are asked in GE code writing test based on c++ data structures and pointers?

1 Answers  


What is difference between class and function?

1 Answers  


What is exception handling? Does c++ support exception handling?

1 Answers  


Keyword mean in declaration?

1 Answers  


class X { public: int x; static void f(int z); }; void X::f(int y) {x=y;} What is the error in the sample code above? a) The class X does not have any protected members. b) The static member function f() accesses the non-static z. c) The static member function f() accesses the non-static x. d) The member function f() must return a value. e) The class X does not have any private members.

2 Answers   Quark,


List the advantages of inheritance.

1 Answers  


What is double in c++?

1 Answers  


Explain what is oop?

1 Answers  


Write a C++ program to sort digits of all the 4 digit number and display the sorted 4 digit number

1 Answers   TATA, TCS,


Friend functions can access private and protected members of a class.

1 Answers  


What is c++ iterator?

1 Answers  


Categories