This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
#include "stdio.h" | |
#pragma pack(1) | |
typedef struct{ | |
unsigned char a; | |
char b; | |
int c; | |
unsigned int d; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
#include "stdio.h" | |
#pragma pack(1) | |
typedef struct{ | |
unsigned char a; | |
char b; | |
int c; | |
unsigned int d; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
typedef struct{ | |
unsigned char a; | |
char b; | |
int c; | |
unsigned int d; | |
char e[10]; | |
}unpacked; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
typedef struct{ | |
signed char SChar; | |
unsigned char UChar; | |
char Char; | |
short int SInt; | |
unsigned short int USInt; | |
int Int; |