单项选择题

有以下程序:
#define f(x) x*x+1
void main()
int i;
i=f(4+4)/f(2+2);
printf("%d\n",i);

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

A.28
B.21
C.16
D.31
<上一题 目录 下一题>
热门 试题

单项选择题
假定int类型变量占用两个字节,若有定义:int x[10]=0,2,4;,则数组x在内存中所占字节数是( )。
A.3
B.6
C.10
D.20
单项选择题
下面程序的输出结果是( )。 #include <stdio.h> main() int a=1,*p,**pp; pp=&p; p=&a; a++: printf( %d,%d,%d n , a,*p,**pp);
A.2,1,1
B.2,1,2
C.2,2,2
D.程序有错误
相关试题
  • 有以下函数: fun(char *a,char *b...
  • 有定义如下: struct sk int a; floa...
  • 有以下说明和定义语句: struct student...
  • 若有定义语句:int a[2][3],*p[...
  • 已知: struct sk int a; int age;...