单选题表达式3.6-5/2+1.2+5%2的值是
单选题下列选项中,能正确定义数组的语句是______。
单选题有以下程序: void fun(int *a,int i,int i) int t; if(i<j) t==a[i];a[i]=a[j];a[i]=t; i++; j--; fun(a,i,j); main() int x[]=2,6,1,8),i; fun(x,0,3), for(i=0;i<4;i++) printf("%2d",x[i]); printf("/n"); 程序运行后的输出结果是( )。 A) 1268 B) 8621 C) 8162 D) 8612
单选题以下语句定义正确的是( )。
单选题以下程序的输出结果是 ( ) main( ) int a=5,b=4,c=6,d; printf(”%d\\n",d=a>b?(a>c?a:c):(b)); A.5B.4C.6D.不确定
单选题以下选项中,不合法的C语言用户标识符是
单选题C语言可执行程序的开始执行点是( )。 A) 包含文件中的第一个函数 B) 程序中第一个函数 C) 程序中的main()函数 D) 程序中第一条语句
单选题有以下函数
#include
struct stu
{int mun; char name[10]; int age;};
viod fun(struct stu *p)
{ printf(“%s\n”,p->name);}
mian()
{ struct stu x[3]={{01,”zhang”,20},{02,”wang”,19},{03,”zhao”,18}};
fun(x+2);
}
程序运行输出结果是( )。
单选题关于C语言常量的叙述中错误的是( )。
单选题若有定义:int a=4,b=5;float x=3.4,y=2.1;,则下面表达式的值为______。
float)(a+b)/2+(int)x%(int)y
单选题有如下程序 main() int x=3; do prinff("%d",x--); while(!x); 该程序的执行结果是_____。
单选题阅读下面程序,程序执行后的结果为( )。 #inc1ude "stdio.h" main() {char *str="abcdefghijklmnopq"; while(*str++! ='e'); printf("%c/n",*str); }
单选题有下列程序:
fun (int x,int y)
{static int m=0,i=2;
i+=m+1;m=i+x+y;return m;
}
main()
{int j=1,m=1,k;
k=fun0,m);printf("%d,"k);
k=fun0,m);printf("%d/n",k);
}
执行后的输出结果是( )。
单选题设有以下说明语句: typedef struct int n; char ch[8]; PER;则下面叙述中正确的是( )。 A) PER是结构体变量名 B) PER是结构体类型名 C) typedef struct是结构体类型 D) struct是结构体类型名
单选题有以下程序 #include<stdio.h> void fun(int n,int*s) int f; if(n==1)*s=n+1; else fun(n-1,&f); *s=f; main() int x=0; fun(4,&x); printf("%d/n",x); 程序运行后的输出结果是______。 A.2 B.1 C.3 D.4
单选题以下选项中合法的用户标识符是______。 A) long B) 2Test C) 3Dmax D) A.dat
单选题有以下程序
#include<stdio.h>
main()
{int a[]={2, 4, 6, 8, 10}, x, *p, y=1;
p=
for(x=0; x<3; x++)y+=*(p+x);
printf("%d/n", y);
}
程序的输出结果是______。
单选题已知i、j、k为整型变量,若从键盘输入1,2,3<回车>,使i的值为1、j的值为2、k的值为3,以下选项中正确的输入语句是( )。
单选题已有定义:char a[]="xyz",b[]='x','y','z';,以下叙述中正确的是( )。 A) 数组a和b的长度相同 B) a数组长度小于b数组长度 C) a数组长度大于b数组长度 D) 以述说法都不对
单选题有以下程序: #include<stdio.h> main() int x; scanf ("%d",&x); if(x<=0);else if(x!=5)printf("%d/n",x); 程序运行时,输入的值在哪个范围才会有输出结果( )。