A、ble $t1, $t2, next
B、blt $t1, $t2, next
C、bgt $t1, $t2, next
D、bge $t1, $t2, next
A、ble $t1, $t2, next
B、blt $t1, $t2, next
C、bgt $t1, $t2, next
D、bge $t1, $t2, next
A、ble $t1, $t2, next
B、bne $t1, $t2, next
C、bge $t2, $t1, next
D、bge $t1, $t2, next
A.++t->a
B.(*t).a++
C.t->a++
D.t++->a
A、x=array[3];
B、x=*(array+3);
C、x=*(ptr+2)
D、array+=2; x=*array;
A、++p->n
B、(*p).n++
C、p->n++
D、p++ ->n
A、struct是结构体类型的关键字
B、abc是用户定义的结构体名
C、m和n都是结构体成员
D、stype是用户定义的结构体变量名
E、struct abc 是结构体类型名
例如,若一维数组中的数据是:1,1,1,2,2,2,3, 4,4,5,5,6,6,7,7,8,9,9,10,10。
删除后,数组中的内容应该是:1,2,3,4,5,6,7, 8,9,10。
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在函数fun()的横线上填入所编写的若干表达式或语句。
试题程序:
include<stdio.h>
define N 80
int fun(int a[],int n)
{
int i, t,j=0;
t=a[0];
for(i=1;i<n;i++)
if(【 】)
;
else
{
【 】;
t=a[i];
}
a[j++]=t;
return j;
}
main()
{
int a[N]={1,1,2,2,2,3,4,4,5,5,6,6,6,
7,7,8,9,9,10,10},i,n=20;
printf("The original data:\n");
for(i=0; i<n; i++)
printf("%4d",a[i]);
n=fun(a,n);
printf("\n\nThe data after deleted ;
\n");
for (i=0;i<n;i++)
printf("%4d",a[i]);
printf("\n");
}
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!