struct abc
{
int a: 4;
char b: 2;
int ab:5;
};
main()
{
struct abc w;
cout << sizeof(w);
}
Question: The value of "w" is printed as 8 in Visual studio C++. How is the space allowed for int and char?
{
int a: 4;
char b: 2;
int ab:5;
};
main()
{
struct abc w;
cout << sizeof(w);
}
Question: The value of "w" is printed as 8 in Visual studio C++. How is the space allowed for int and char?
Comment