单项选择题
有下列程序:
#include<stdio.h>
structst
int(x,y)date[2]=1,10,2,20;
main()
structst*p=date;
printf("%d,",p->y);printf("%d\n",(++p)->x);
程序的运行结果是( )。
A.10,1
B.20,1
C.10,2
D.20,2
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列语句中,在字符串s1和s2相等时显示 they are Equal 的是( )。
A) if(*s1==*s2)
puts("they are Equal");
B) if(!strcmp(s1,s2))
puts("they are Equal");
C) if(s1==s2)
Puts("they are Equal");
D) if(strcmp(s1,s2) )
puts("they are Equal");
点击查看答案&解析
单项选择题
以下程序运行后的输出结果是 #include<stdio.h> #define SUB(a)(a)-(a) main() int a=2, b=3, c=5, d; d=SUB(a+b)*e; printf( %d n , d);
A) 0
B) -12
C) -20
D) 10
点击查看答案&解析
相关试题
有以下程序struct Sint n;int a[20...
在C语言中,只有在使用时才占用内存单元的...
若有结构体定义: struct stuint num;...
有以下程序: # define f(x) (x*x...
若有定义int a[10],*p=a,则p+6...