单项选择题

有以下程序段:
struct st
int x; int *y; *pt;.
int a[]=1,2,b[]=3,4;
struct st c[2]=10,a,20,b;
pt=c;
以下选项中表达式的值为11的是

A) *pt->y
B) pt->x
C) ++pt->x
D) (pt++)->x
<上一题 目录 下一题>
热门 试题

单项选择题
下面结构体的定义语句中,错误的是
A) struct ord int x;int y;int z;;struct ord a;
B) struct ord int x;int y;int z; struct ord a;
C) struct ord int x;int y;int z; a;
D) struct int x;int y;int z;a;
单项选择题
有以下程序: int fun(int x[],int n) static int sum=0,i; for(i=0;i<n;i++)sum+=x[i]; return sum; main() int a[]=1,2,3,4,5,b[]=6,7,8,9,s=0; s= fun(a,5)+fun(b,4); printf( %d n ,s); 程序执行后的输出结果是
A) 45
B) 50
C) 60
D) 55
相关试题
  • 有以下程序: #include <stdio.h> m...
  • 以下程序运行后的输出结果是______。...
  • 阅读下面程序段,执行后输出的结果是___...
  • 下面程序的功能是输出数组s中最大元素的下...
  • 有以下程序: #include <stdio.h> i...