选择题 下列条件语句中,输出结果与其他语句不同的是______。
选择题 若有定义语句:double x,y,*px,*py;,执行了px=x;py=y;之后,正确的输入语句是______。
选择题有三个关系R、S和T如下:由关系R和S通过运算得到关系T,则所使用的运算为______。
选择题 以下能够实现计算5!的程序段是______。
选择题 有以下程序
#include<stdio.h>
main()
{int b[3][3]={0, 1, 2, 0, 1, 2, 0, 1, 2}, i, j, t=1;
for(i=0; i<; i++)
for(j=i; j<=i; j=++)t+=b[i][b[j][i]];
printf('%d\n', t);
}
程序运行后的输出结果是______。
选择题 以下叙述中正确的是______。
选择题 一间宿舍可住多名学生,则实体宿舍和学生之间的联系是______。
选择题 有以下程序:
#include <stdio.h>
main()
{
int x=010, y=10;
printf('%d,%d\n', ++x, y--);
}
程序运行后的输出结果是______。
选择题 下面不属于需求分析阶段任务的是______。
选择题 已有定义:int x=3,y=4,z=5;,则表达式!(x+y)+z-1 y+z/2的值是
选择题软件详细设计产生的图如右图所示:该图是。
选择题 有以下定义:“int a; long b; double x, y;”,则以下选项中正确的表达式是______。
选择题 有以下程序
#include<stdio.h>
#include<string.h>
typedef struet{char name[9]; char sex; float score[2];}STU;
STUf(STU a)
(STU b={'Zhao', 'm', 85.0, 90.0}; int i;
strcpy(a.name, b.name);
a.sex=b.sex;
for(i=0; i<2; i++)a.score[i]=b.score[i];
return a;
}
main()
(STU c={'Qian', 'f', 95.0, 92.0}, d;
d=f(c);
printf('%s, %c, %2.0f, %2.0f\n', d.name, d.sex, d.score[0], d.score[1]);
}
程序的运行结果是______。
选择题 有以下程序
#include <stdio.h>
main()
{
int a=5,b=1,t;
t=(a<<2)|b;
printf('%d\n',t);
}
程序运行后的输出结果是______。
选择题 有以下程序
#include<stdio.h>
typedef struct{int b,p;}A;
void f(A c) /* 注意:c是结构变量名*/
{int j;
c.b+=1;c.p+=2;
}
main()
{int i;
A a={1,2};
f(A);
printf('%d,%d\n',a.b,a.p);
}
程序运行后的输出结果是______。
选择题 以下叙述中错误的是
选择题 一间宿舍可住多个学生,则实体宿舍和学生之间的联系是______。
选择题 以下fun函数的功能是将形参s所指字符串内容颠倒过来:
void fun(char*s)
{int i,j,k;
for(i=0,j=strlen(s)______; i<j;i++,j--)
{k=s[i];s[i]=s[j];s[j]=k;}
}
在横线处应填入的内容是______。
选择题 若运行时给变量x输入12,则以下程序的运行结果是______。
main()
{ int x,y;
scanf('%d',x);
y=x>12?x+10:x-12;
printf('%d\n',y);
}
选择题 设x、y和z是int型变量,且x-4,y=6,z=8,则下列表达式中值为0的是______。