enum-2.c
来自「xml大全 可读写调用率很高 xml大全 可读写调用率很高」· C语言 代码 · 共 23 行
C
23 行
/* Copyright (C) 2000 Free Software Foundation *//* by Alexandre Oliva <aoliva@redhat.com> */enum foo { FOO, BAR };/* Even though the underlying type of an enum is unspecified, the type of enumeration constants is explicitly defined as int (6.4.4.3/2 in the C99 Standard). Therefore, `i' must not be promoted to `unsigned' in the comparison below; we must exit the loop when it becomes negative. */intmain (){ int i; for (i = BAR; i >= FOO; --i) if (i == -1) abort (); exit (0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?