单选题有以下程序:
#include<stdio.h>
void fun(double x,double *y,double *z)
{*y=*y-1.0;*z=*z+x;}
main()
{ double a=2.5,b=9.0,*pa,*pb;
pa=pb=
fun(b-a,pa,pb);
printf("%f/n",a);
}
程序运行后的输出结果是______。
单选题若变量已正确定义,在if(W)printf("%d/n",k);中,以下不可替代W的是( )。 A) a<>b+c B) ch=getchat() C) a==b+c D) a++
单选题有以下程序
main( )
{ int a; char c=10;
float f=100.0; double x;
a=f/=c*=(x=6.5);
printf("%d %d %3.1f %3.1f/n",a,c,f,x);
}
程序运行后的输出结果是
A)1 65 1 6.5
B)1 65 1.5 6.5
C)1 65 1.0 6.5
D)2 65 1.5 6.5
单选题下列程序执行的输出结果是( )。 #inClUde<stdio.h> main() char a[2][4]; strcpy(a,"are");strcpy(a[1],"you"); a[0][3]='&'; printf("%s/n",a); A) are&you B) you C) are D) &
单选题有以下程序:
#include<stdio.h>
int f(int n);
main()
{int a=3,s;
s=f(a);s=s+f(a);
printf("%d/n",s);
}
int f(int n)
{static int a=1;
n+=a++;
return n;
}
程序运行后的输出结果是______。
单选题如下程序的输出结果是______。 #include<stdio.h> main() { int x=1,a=3,b=4; switch(x) { case 0:a--; case 1:b--; case 2:a--;b--; } printf("a=%d,b=%d/n",a,b); }
单选题在Windows环境下,单击当前窗口中的按钮“”,其功能是()。
单选题有以下程序,程序中库函数islower(ch)用以判断ch中的字母是否为小写字母 #include<stdio.h> #include<ctype.h> void fun(char*P) {int i=0; while(p[i]) {if(p[i]==''&&islower(p[i-1))p[i-1]=p[i-1]-'a'+'A'; i++: } } main() {char s1[100]="ab cd EFG!"; fun(s1);printf("%s/n",s1); } 程序运行后的输出结果是( )。
单选题可以在C语言程序中用做用户标识符的一组标识符是( )。 A) void B) aa 123 abc BBN cas C) as+b3 D) 6f -123 Do If SIG
单选题静态测试是一种重要的测试方式,可以发现30%到70%的逻辑设计和编码错误。下面( )不属于静态测试?
单选题有三个关系R、S和T如下:
R
A
B
C
a
l
2
b
2
1
c
3
1
S
A
D
c
4
T
A
B
C
D
c
3
1
4
则由关系R和S得到关系T的操作是______。
单选题下面程序的运行结果是 ( ) # include<stdio.h> # include<string.h> main( ) char * a="AbcdEf",* b="aBcD" a + +;b + +; printf("%d//n",strcmp(a,b));
单选题以下涉及字符串数组、字符指针的程序段,没有编译错误的是( )。
单选题下面关于编译预处理的命令行中,正确的是( )。
单选题若有以下结构体定义: struct example { int
x; int y; } v1;
则______是正确的引用或定义。
A.example, x=10;
B.example v2; v2.x=10;
C.struct v2; v2.x=10;
D.struct example v2={10};
单选题合法的C语言常量是( )。
单选题有以下程序 #include<stdio.h> main() int a=3; printf("%d/n",(a+=a-=a*a)); 程序运行后的输出结果是______。 A.-12 B.9 C.0 D.3
单选题以下叙述中正确的是( )。
单选题打印当前屏幕内容应使用的控制键是 ( )
单选题模块本身的内聚是模块独立性的重要性度量因素之一。在7类内聚中,具有最强内聚的—类是______。
A. 顺序性内聚
B. 过程性内聚
C. 逻辑性内聚
D. 功能性内聚