C++ Institute CLA-11-03 Question Answer
Assume that ints and floats are 32-bit wide.
What happens if you try to compile and run this program?
#include
union uni {
float f, g;
int i, j;
};
int main (int argc, char *argv[]) {
union uni u;
printf ("%ld", sizeof (u) ) ;
return 0;
}
Choose the right answer:
C++ Institute CLA-11-03 Summary
- Vendor: C++ Institute
- Product: CLA-11-03
- Update on: Jul 20, 2025
- Questions: 40