#include <stdio.h>
struct test
{
unsigned int x;
long int y: 33;
unsigned int z;
};
int main()
{
struct test t;
printf("%d",sizeof(t));
return 0;
}
output
24
size of long int is 8 byte but here it is taking 16 byte why?
#include <stdio.h>
struct test
{
unsigned int x;
long int y: 33;
unsigned int z;
};
int main()
{
struct test t;
printf("%d",sizeof(t));
return 0;
}
output
24
size of long int is 8 byte but here it is taking 16 byte why?