下列程序的输出结果是________。#include int a = 3; int main(void) { int s = 0; { int a = 5; s += a++; } s += a++; printf("%d\n", s); return 0; }
查看答案
下列程序的输出结果是________。#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;}