Mantu Dec 6th, 2017 By using #pragma pack(1) we can reduce the size of structure. Code#pragma pack(1) struct num { char ch; int i; char s; } n1; printf("Size of num structure is %d ", sizeof(n1));
Structure Padding
ex: struct num {
char ch;
int i;
char s;
};
Editorial / Best Answer
Answered by: Mantu
By using #pragma pack(1) we can reduce the size of structure.
Related Answered Questions
Related Open Questions