#pragma pack(1) in c
struct Test
{
char AA;
int BB;
char CC;
};
#pragma pack(1) in c
struct Test
{
char AA;
int BB;
char CC;
};
#pragma pack(1) in c
#include <stdio.h>
struct a {
char one;
char two[2];
char eight[8];
char four[4];
};
struct b {
char one;
short two;
long int eight;
int four;
};
int main(int argc, char** argv) {
struct a twoa[2] = {};
struct b twob[2] = {};
printf("sizeof(struct a): %i, sizeof(struct b): %in", sizeof(struct a), sizeof(struct b));
printf("sizeof(twoa): %i, sizeof(twob): %in", sizeof(twoa), sizeof(twob));
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us