pr34099-2.c

来自「用于进行gcc测试」· C语言 代码 · 共 48 行

C
48
字号
int test1 (int b, int c){  char x;  if (b)    return x / c;  else    return 1;}int test2 (int b, int c){  int x;  if (b)    return x * c;  else    return 1;}int test3 (int b, int c){  int x;  if (b)    return x % c;  else    return 1;}int test4 (int b, int c){  char x;  if (b)    return x == c;  else    return 1;}extern void abort (void);int main(){  if (test1(1, 1000) != 0)    abort ();  if (test2(1, 0) != 0)    abort ();  if (test3(1, 1) != 0)    abort ();  if (test4(1, 1000) != 0)    abort ();  return 0;}

⌨️ 快捷键说明

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