typedef.c
来自「sdcc是为51等小型嵌入式cpu设计的c语言编译器支持数种不同类型的cpu」· C语言 代码 · 共 44 行
C
44 行
#ifdef TEST1typedef union { long l; float f;} floatlong;char func(char floatlong){ return floatlong;}#endif#ifdef TEST2typedef union { long l; float f;} floatlong;long func(float x){ typedef union { float f2; long l2; char c[4]; } floatlong; floatlong fl; fl.f2=x; return fl.l2;}#endif#ifdef TEST3typedef int I; /* IGNORE */typedef int I; /* ERROR */#endif#ifdef TEST4typedef int I; /* IGNORE */typedef char I; /* ERROR */#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?