Single Choice Not Set

QWhat type of data is holded by variable u int this C code?

    #include <stdio.h>
    union u_tag
    {
        int ival;
        float fval;
        char *sval;
    } u;
The variable u here

ID: #2671 Union in C Language 1,732 views
Question Info
#2671Q ID
Not SetDifficulty
Union in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Will be large enough to hold the largest of the three types;
  • B Will be large enough to hold the smallest of the three types;
  • C Will be large enough to hold the all of the three types;
  • D None of the mentioned
Correct Answer

Explanation

Will be large enough to hold the largest of the three types;

Share This Question

Challenge a friend or share with your study group.