Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~84 People Reached
Favorite Forums
Favorite Tags
c x 1
Member Avatar for kranti_kumar38

#include<stdio.h> #pragma pack(2) struct hai { char ch1; char ch2; char ch3; char ch4; char ch5; }s; int main() { printf("%d \n",sizeof(s)); return 0; } output : 5 while i changing the statemnt in 2nd line as #pragma pack(4) ,then both outputs are same. can u give me solutions ?

Member Avatar for Tom Gunn
0
84