Programming Language Union in C Language Question #2688
Single Choice Not Set

QWhat will be the output of the program given below in 16-bit platform?

#include<stdio.h>

int main()
{
    enum value{VAL1=0, VAL2, VAL3, VAL4, VAL5} var;
    printf("%d\n", sizeof(var));
    return 0;
}

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

Choose the Best Option

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

  • A 1
  • B 2
  • C 4
  • D 10
Correct Answer

Explanation

2

Share This Question

Challenge a friend or share with your study group.