单选题语句a=(3/4)+3%2;运行后,a的值为______。
单选题有以下程序: #include <stdio, h> main( ) int m =0256,n =256; printf( "% o % o /n" ,m,n); 程序运行后的输出结果是( ) 。
单选题违背数据流图(DFD)构造规则的是
单选题以下选项中有语法错误的是
单选题若int x=12,y=8,z;在其后执行语句z=0.9+x/y;则z的值为( )。
单选题有以下程序 #include <string.h> struct STU int hum; float TotalScore; ; void f(struct STU p) struct STU s[2]=20044,550,20045,537; p.num=s [1].num; p.TotalScore-s[1].TotalScore; main() struct STU s[2]-20041,703,20042,580; f(s[0]); printf("%d %3.0f/n",s[0].num,s[0].TotalScore); 程序运行后的输出结果是
单选题有以下程序
#include
main()
{ int a=5,b=1,t;
t=(a<<2)|b;printf("%d\n",t);
}
单选题以下程序中函数sort的功能是对a所指数组中的数据进行由大到小的排序: void sort(int
a[],int n) {int i,j,t;
for(i=0;i<n-1;i++) for(j=i+1;i<n;j++)
if(a[i]<a[j]) {t=a[i];a[i]=a[j];a[j]=t;} }
main() {int aa[10]={1,2,3,4,5,6,7,8,9,10},i;
sort( for(i=0;i<10;i++)
printf('%d,",aa[i]); printf("/n"); }
程序运行后的输出结果是( )。
A. 1,2,3,4,5,6,7,8,9,10,
B. 10,9,8,7,6,5,4,3,2,1,
C. 1,2,3,8,7,6,5,4,9,10,
D. 1,2,10,9,8,7,6,5,4,3,
单选题以下选项中,非法的字符常量是______。 A) 't/' B) '/17' C) "/n" D) '/xaa'
单选题有以下程序
#include
struct STU{char name[9];char sex;int score[2];};
void f(struct STU a[])
{struct STU b={"zhao",'m',85,90};
a[1]=b;}
main()
{struct STU c[2]={{"Qian",'f',95,92},{"Sun",'m',98,99}};
fi[c);
printf("%s,%c,%d,%d,",c[0].name,c[0].sex,c[0].score[0],c[0].score[1]);
printf("%s,%c,%d,%d\n,",c[1].name,c[1].sex,c[1].score[0],e11].score[1]);
}
程序运行后输出结果是
单选题现在有以下定义,int a;double b;float c;char k;则下面的表达式a/b+c-k值的类型为:
单选题有以下程序:#include<stdio.h>main(){char ch[]="uvwxyz",*pc;pc=ch;printf("%c\n",*(pc+5));}程序的运行结果是( )。
单选题有以下程序的输出结果是( ) main( ) { char a[ ]=”abcdefg”,b[10]=”abcdefg”; printf(“%d %d/n”,sizeof(a),sizeof(b));}
单选题以下错误的定义语句是______。
单选题有如下程序:
#include
main()
{
int i,data;
scanf("%d",&data);
for(i=0;i<5;i++)
{
if(i<data)continue;
printf("%d-",i);
}
}
程序运行时,从键盘输入:3后,程序的输出结果为( )。
单选题现有如下程序段 #include"stdio.h" main() int a[5][6]=23,3,65,21,6,78,28;5,67,25,435,76,8,22,45,7,8,34,6,78,32,4,5,67,4,21,1; int i=0,j=5; printf("%d/n",*(&a[0][0]+2*i+j-2)); 则程序的输出结果为
单选题以下程序的输出结果是______。 #include <stdio.h>
void fun(float*a, float*b) { float w;
*a=*a+*a; w=*a; *a=*b;
*b=w; } main() { float x=2.0,
y=3.0; float *px= fun(px,
py); printf("% 2.0f, % 2.0f/n", x, y); }
A.4,3
B.2,3
C.3,4
D.3,2
单选题有以下程序
#include
int fun()
{ static int x=1;
x*2; return x;
}
main()
{int i,s=1,
for(i=1;i<=2;i++) s=fun();
printf("%d/n",s);
}
程序运行后的输出结果是
单选题有下列函数:
int fun(char*s)
{char*t=s;
while(*t++);
return(t-s);
}
该函数的功能是
____
。
单选题下列程序的输出结果是______。 main() int i=3; switch(i) case 1: case2:printf("%d",i) case3: case4:break; default:printf("OK"); A) 0 B) 3 C) OK D) 没有任何输出