摘要: 设有以下语句int a=1,b=2,c;c=a ^ (b$amp;A)6B)7C)8D)9[阅读全文:]
摘要: 有以下程序void swap(char *x,char *y){ char t;t=*x; *x=*y; *y=t;}main(){ char *s1=abc,*s2=123;swap(s1,[阅读全文:]
摘要: 设 fp 为指向某二进制文件的指针,且已读到此文件末尾,则函数 feof(fp) 的返回值为A)EOFB) 非 0 值C)0D)NULL[阅读全文:]
摘要: 有以下程序段struct st{int x;int *y;)*pt;int a[]={l,2},b[]={3,4};struct st c[2]={10,a,20,b};pt=c;以下选项中表达式的值[阅读全文:]
摘要: 若有说明语句 : double *p,a; 则能通过 scanf 语句正确给输入项读入数据的程序段是A)*p=&a; scanf( % 1f,p);B)*p=&a; scanf( % f,p)[阅读全文:]
摘要: 有以下程序int fun1(double a){return a*=a;}int fun2(double x,double y){ double a=0,b=0;a=fun1(x);b=fun1(y)[阅读全文:]
摘要: 已定义以下函数int fun(int *p){ return *p;)fun 函数返回值是A) 不确定的值B) 一个整数C) 形参 P 中存放的值D) 形参 P 的地址值[阅读全文:]
摘要: 要求通过 while 循环不断读入字符 , 当读入字母 N 时结束循环 。 若变量已正确定义 , 以下正确的程序段是A)while((ch=getchar())!=N) printf( % c[阅读全文:]
摘要: 若各选项中所用变量已正确定义,函数 fun 中通过 return 语句返回一个函数值,以下选项中错误的程序是A)main(){ …… x=fun(2,10); …… }float fun(int a,[阅读全文:]
摘要: 若要求从键盘读入含有空格字符的字符串,应使用函数A)getc()B)gets()C)getchar()D)scanf()[阅读全文:]