Teaching Rajasthan Basic Computer Instructor 2021 Mock Test Programming and Data Structure Programming in C
What is the output of the below given C code if the size of integer and float are 4 bytes each while double and character are 8 bytes and 1 byte respectively?
#include
int main()
{
union company
{
char a = 'b';
int x;
float y;
double b;
};
union company data;
printf("%d\n", size of(data));
return 0;
}1
1
2
4
3
5
4
8