[code]
Dear All,
can anybody help me to following doubts i am thankful to you
1.2.Code:#include<stdio.h> void main() { int a=3; printf("%d", ~a); } It showing -4 how come?Code:#include<stdio.h> void main() { union { unsigned i1:8; unsigned i2:8; unsigned i3:8; unsigned i4:8; }uu; uu. i1=257; printf("\n %d::%d" ,sizeof(uu), uu.i2); } it showing 4 ,1 answer how come? also if i print any of uu.i1, uu.i2, uu.i3 all showing 1 only please help me?