填空题

有以下程序:
struct s
int x,y; data[2]=10,100,20,200;
main()
struct s*p=data;
printf("%d\n",++(p->x));

程序运行后的输出结果是______。

【参考答案】

11
<上一题 目录 下一题>
热门 试题

填空题
下面程序的运行结果是______。 #include <stdio.h> main() int y,a; y=2,a=1; while(y--!=-1) doa*=y;a++; while(y--); printf( %d,%d ,a,y);
填空题
假设用一个长度为100的数组(数组元素的下标从0~99)作为栈的存储空间,栈底指针bottom指向栈底元素,栈顶指针top指向栈顶元素,如果bottom=99,top=60(数组下标),则栈中具有______个元素。
相关试题
  • 有以下程序: #include <stdio.h> m...
  • 有以下程序: #include <stdio.h> m...
  • 以下程序的输出结果是______。 #in...
  • 设有以下定义和语句,则*(*(p+2)+...
  • 函数my_cmp()的功能是比较字符串s和t的...