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

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation