单选题有以下定义和语句:
struct workers
{int num; char name[20]; char c;
struct
{ int day; int month; int year; }s;
};
struct workers w, *pw;
pw=
能给w中year成员赋1980的语句是______。
单选题以下选项中叙述正确的是______。
单选题C语言规定,程序中各函数之间_______。
单选题有以下函数 int aaa(char*s) char*t=s; while(*t++); t--; return(t-s); 以下关于aaa函数的功能叙述正确的是( )。
单选题下面选项中不属于面向对象程序设计特征的是______。(A) 继承性(B) 多态性(C) 类比性(D) 封闭性
单选题对于下面程序段,描述中正确的是______。
x=2;
do
x*=x;
while(!x!=0);
单选题设有二元关系R和三元关系S,下列运算合法的是______。
单选题有以下程序:
#include <stdio.h>
int f(int x);
main( )
{ int a,b=0;
for(a=0;a<3;a+=1)
{ b+=f(a); putchar("A"+b); }
}
int f(int x)
{ return x*x+1; }
程序运行后的输出结果是______。
单选题若变量都已正确说明,则以下程序段______。
#include<stdio.h>
main()
{int a=3;
intb=2;
printf(a>b?"***a=%d":"###bb=%d",a,b);}
单选题有以下程序:
#include<stdio.h>
main()
{int y=10;
while(y--); printf("y=%d/n", y);
}
程序执行后的输出结果是______。
单选题下面程序的输出结果是( )。 #define SQR(X) 2*X+1 main() { int a,b,C; a=3;b=2;C=1; a* =SQR(b+c)/SQR(b+c); printf("%d",a); }
单选题应用数据库的主要目的是为了 ( )A.解决数据的保密问题B.解决数据的共享问题C.解决数据量大的问题D.解决数据的完整性问题
单选题在Visual FoxPro中,用于设置表单标题的属性是______。 A) Text B) Title C) Lable D) Caption
单选题有以下程序(strcpy为字符串复制函数,strcat为字符串连接函数) #include<stdio.h> #include<string.h> main() {char a[10]="abc",b[10]="012",c[10]="xyz"; strcpy(a+1,b+2); puts(strcat(a,c+1));}程序运行后的输出结果是
单选题若运行以下程序时,从键盘输入ADescriptor (<CR>表示回车) ,则下面程序的运行结果是( )。 #include <stdio.h> main() char c; int v0=1, v1=0, v2=0; do(switch(c=getchar()) (case'a':case'A': case 'e':case 'E': case 'i':case 'T': case 'o':case '0': case 'u':case'U':v1+=1; default:v0+=1; v2+=1; ) while(e!='/n'); printf("v0=%d, v1=%d, v2=%d/n", v0, v1, v2); ) A) v0=7, v1=4, v2=7 B) v0=8, v1=4, v2=8 C) v0=11, v1=4, v2=11 D) v0=13, v1=4, v2=12
单选题以下叙述中错误的是( )。
单选题有以下定义语句,编译时会出现编译错误的是( )。
单选题有以下程序: main() { char
a='a',b; printf("%c,",++a);
printf('%c/n",b=a++); } 程序运行后的输出结果是( )。
A. b,b
B. b,c
C. a,b
D. a,c
单选题有以下字符串,说明表达式strlen(s)值的是______。
char s[10]={"a","/n","a","b","/t","c"};
单选题以下不合法的字符常量是( )。