主页
C 语言
C typedef 关键字
demo_typedef
运行 ❯
×
更改方向
保存代码
更改主题
#include
typedef float Temperature; int main() { Temperature today = 25.5; Temperature tomorrow = 18.6; printf("Today: %.1f C\n", today); printf("Tomorrow: %.1f C\n", tomorrow); return 0; }
Today: 25.5 C
Tomorrow: 18.6 C