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

QWhat will be the output of the program?

#include<stdio.h>

int main()
{
    struct byte
    {
        int one:1;
    };
    struct byte var = {1};
    printf("%d\n", var.one);
    return 0;
}

ID: #2685 Union in C Language 876 views
Question Info
#2685Q ID
Not SetDifficulty
Union in C LanguageTopic

Choose the Best Option

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

  • A 1
  • B -1
  • D Error
Correct Answer

Explanation

-1

Share This Question

Challenge a friend or share with your study group.