选择题 有以下程序
#include<stdio.h>
main()
{
int a=2, c=5;
printf('a=%%d, b=%%d\n', a, c);
}
程序的输出结果是______。
选择题设有如下关系表:则下列操作正确的是______。
选择题 下面选项中关于位运算的叙述,正确的是______。
选择题 若k是int类型变量,且有以下for语句:
for(k=-1; k<0; k++)printf('****\n');
下面关于语句执行情况的叙述中正确的是______。
选择题 有如下程序:
#include <stdio.h>
#include <string.h>
main()
{
printf('%d\n',strlen('0\t \nA011\1'));
}
程序运行后的输出结果是______。
选择题 以下选项中不合法的标识符是______。
选择题 以下正确的函数定义是______。
选择题 设有一个商店的数据库,记录客户及其购物情况,由三个关系组成:商品(商品号,商品名,单价,商品类别,供应商),客户(客户号,姓名,地址,电邮,性别,身份证号),购买(客户号,商品号,购买数量),则关系购买的键为______。
选择题 以下程序的输出结果是______。
main()
{int a=1,b=2;
printf('%d,%d\n',--a,++b);}
选择题 有以下程序:
#include<stdio.h>
void main()
{char ch[7]={'43ab21'};
int i,s=0;
for(i=0;ch[i]>='0'ch[i]<='9';i+=2)
s=10*s+ch[i]-'0';
printf('%d\n',s);
}
程序运行后的输出结果是______。
选择题 若有定义语句:“int a=3, b=2, c=1;”,以下选项中错误的赋值表达式是______。
选择题 有以下程序:
#include<stdio.h>
void fun(int a[],int n)
{
int i;
for(i=0;i<n;i++)
{
if(i%3==0)
a[i]-=n;
else
a[i]+=n;
}
}
main()
{int c[5]={6,7,8,9,10},i;
fun(c,5);
for(i=0;i<5;i++)printf('%d,',c[i]);
printf('\n');
}
程序运行后的输出结果是______。
选择题 若有定义和语句:int a, b; scanf('%d, %d', a, b);以下选项的输入数据中,不能把值3赋给变量a,5赋给变量b的是______。
选择题 有以下程序
#include<stdio.h>
main()
{int a[]={2, 3, 5, 4}, i;
for(i=0; i<4; i++)
switch(i%2)
{ case 0:switch(a[i]%2)
{case 0:a[i]++; break;
case 1:a[i]--;
}break;
case 1:a[i]=0;
}
for(i=0; i<4; i++)printf('%d', a[i]); printf('\n');
}
程序运行后的输出结果是______。
选择题 软件生命周期是指
选择题 有以下程序:
#include <stdio.h>
main( )
{ int c,d;
c = 10^3;
d = 10+3;
printf('%d,%d\n',c,d);
}
程序运行后的输出结果是______。
选择题 有以下程序:
#include <stdio.h>
#define SUB(X,Y) (X+1)*Y
main( )
{ int a=3,b=4;
printf('%d\n',SUB(a+ +,b+ +));
}
程序运行后的输出结果是______。
选择题 下列叙述中正确的是
选择题 若有定义:int a=0,b=0,c=0,d=0;,以下关于C语言表达式:(++a ‖++b)?++c:++d执行顺序的叙述正确的是______。
选择题 有以下程序
#include<stdio.h>
main()
{
int i;j;
for(i=1;i<4;i++)
{
for(j=i;j<4;j++)printf('%d*%d=%d',i,j,i*j);
printf('\n');
}
}
程序运行后的输出结果是______。