Hi I am getting the strange output when I run the following code:
Why this?? instead of 34 .....Code:#include "conio.h" struct bhagwat { char name[30]; int age; }; bhagwat a; int main(int argc, char* argv[]) { printf("%d",sizeof(a)); getch(); return 0; } output::36
I am using VS6.0 complier for this.....
And integer in VS tooks 4 byte...so the output should be 34.
Also when I commented char name[30],the output is 4
Can anybody explain why this....
Thanks
bhagwat