下列程序的输出结果是________。#include int b = 40; void f() { int a = 5; static int b = 5; ++a; ++b; printf("%d%d ", a, b);} int main(void) { f(); f(); return 0; }
查看答案
下列程序的输出结果是________。#include int f(int n){ if(n == 1) return 1; else return n + f(n - 1); } int main(void) { printf("%d\n", f(5)); return 0; }
下列程序的输出结果是________。#include #define M 3 #define N M + 1 #define NN N * N / 2 int main(void) { printf("%d\n", NN); return 0; }
下列程序的输出结果是________。#include #define PI 3.14 #define S(x) PI * x * x int main(void) { int a = 2; printf("%.1f\n", 6.28 / S(a)); return 0;}
下列程序的输出结果是________。#include"stdio.h"#define N 10void f(void);int main(void){f();#ifdef N#undef N#endifreturn 0;}void f(void){#if defined(N)printf("N is %d\n", N);#elseprintf("N is undefined\n");#endif}