C Programming and Technical Programming Definition

#include

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

A. 1 B. -1
C. 0 D. Error

Read Solution (Total 3)

C Other Question

int main()
{
struct value
{
int bit1:1;
int bit3:4;
int bit4:4;
}bit;
printf("%dn", sizeof(bit));
return 0;
}

A. 1 B. 2
C. 4 D. 9
#include

int main()
{
printf("%d %dn", 32<0);
printf("%d %dn", 32>>-1, 32>>-0);
return 0;
}