⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 struct-ret-2.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
字号:
typedef struct{  unsigned char a __attribute__ ((packed));  unsigned short b __attribute__ ((packed));} three_byte_t;unsigned charf (void){  return 0xab;}unsigned shortg (void){  return 0x1234;}main (){  three_byte_t three_byte;  three_byte.a = f ();  three_byte.b = g ();  if (three_byte.a != 0xab || three_byte.b != 0x1234)    abort ();  exit (0);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -