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

QComment on the following union declaration?

    #include <stdio.h>
    union temp
    {
        int a;
        float b;
        char c;
    };
union temp s = {1,2.5,'A'}; //REF LINE Which member of the union will be active after REF LINE?

ID: #2669 Union in C Language 4,608 views
Question Info
#2669Q ID
Not SetDifficulty
Union in C LanguageTopic

Choose the Best Option

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

  • A a
  • B b
  • C c
  • D Such declaration are illegal
Correct Answer

Explanation

a

Share This Question

Challenge a friend or share with your study group.