单项选择题

有以下程序:
#define f(x) x*x
#include <stdio.h>
main()
int i;
i=f(4+4) /f(2+2);
printf("%d\n", i);

执行后的输出结果是( )。

A) 28
B) 22
C) 16
D) 4
<上一题 目录 下一题>
热门 试题

单项选择题
若要求从键盘读入含有空格字符的字符串,应使用函数( )。
A) getc()
B) gets()
C) getchar()
D) scanf()
单项选择题
有以下程序: #include <stdio.h> fun(int x, int y) static int m=0, i=2; i+=m+1, m=i+x+y; return m; main() int j=1, m=1, k; k=fun(j, m); printf( %d, , k); k=fun(j, m); printf( %d n , k); 执行后的输出结果是( )。
A) 5, 5
B) 5, 11
C) 11, 11
D) 11, 5
相关试题
  • 有以下程序: #include <stdio.h> v...
  • 设有如下定义: struct sk int n; fl...
  • 有以下程序: #include <stdio.h> m...
  • 有以下程序: #include <stdio.h> t...
  • 以下程序的输出结果是( )。 main() ...