选择题 有以下程序:
#include <stdio.h>
#define SUB(X,Y) (X+1)*Y
main( )
{ int a=3,b=4;
printf('%d\n',SUB(a+ +,b+ +));
}
程序运行后的输出结果是______。
选择题 有下列程序:
#include<stdio.h>
structst
{ int(x,y)date[2]={1,10,2,20};
main()
{ structst*p=date;
printf('%d,',p->y);printf('%d\n',(++p)->x);
}
程序的运行结果是 。
选择题 一个算法应该具有“确定性”等5个特性,下面对另外4个特性的描述中错误的是( )
选择题 若变量已正确定义为int型,要通过语句
scanf(“%d,%d,%d',a,b,c);
给a赋值1、给b赋值2、给c赋值3,则以下输入形式中错误的是(注:代表一个空格符)______。
选择题 若有以下程序
#include<stdio.h>
main()
{ int b=10,a=-11;
a%=b%=4;
printf('%d%d\n',a,b);
}
则程序的输出结果是______。
选择题 有以下程序
#include <stdio.h>
struct S
{int a,b;} data[2]={10,100,20,200);
main()
{ struct S p=data[1];
printf('%d\n',++(p.A));
}
程序运行后的输出结果是______。
选择题 执行以下程序段后,w的值为______。
int w='A',x=14,y=15;
w=((x||y)(w<'a'));
选择题 有以下程序段:
int j;float y;char name[50];
scanf('%2d%f%s',j,y,name);
当执行上述程序段,从键盘上输入55566 7777abc后,y的值为______。
选择题 以下有4组用户标识符,其中合法的—组是______。
选择题 有以下程序:
# include <stdio.h>
main()
{ short c=124;
c=c______;
printf('%d\n',c);
}
若要使程序的运行结果为248,应在横线处填入的是______。
选择题 有以下程序
#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');
}
程序运行后的输出结果是______。
选择题 有以下程序:
#inelude <stdio.h>
#include <string.h>
typedef struct Stu {
char name[10];
char gender;
int score;
} STU;
void f(char * name, char * gender, int * score)
{ strcpy(name, 'Qian');
* gender='f';
* score = 350;
}
main( )
{ STU a = {'Zhao','m',290}, b;
b = a;
f(b.name,b.gender,b.score);
printf('%s,%c,%d,', a.name,a.gender,a,score);
printf('%s,%c,%d\n', b.name,b.gender,b.score);
}
程序运行后的输出结果是______。
选择题 在数据库系统中,给出数据模型在计算机上物理结构表示的是______。
选择题 有以下程序
#include<stdio.h>
void fun(char**p)
{
++p;
printf('%s\n',*p);
}
main()
{
char*a[]={'Morning','Afternoon','Evening','Night');
fun(a);
}
程序的运行结果是______。
选择题 链表不具有的特点是______。
选择题 若变量已正确定义,要求通过scanf('%c%d%c%d',c1,a,c2,b)语句给变量a和b分别赋 32和45,给变量c1和c2分别赋字符A和B;下列选项中数据从第1列开始输入,正确的输入形式是 。
选择题 若有定义和语句:int a, b; scanf('%d, %d', a, b);以下选项的输入数据中,不能把值3赋给变量a,5赋给变量b的是______。
选择题 下面程序的运行结果是______。
#include<stdio.h>
void del(char*s)
{int i,j;
char *a;
a=s;
for(i=0,j=0;a[i]!='\0';i++)
{if(a[i]>='0'a[i]<='9'){s[j]=a[i];j++;)
s[j]='\0';}}
main()
{char*s='aa89gggh';del(s);printf('\n%s',s);}
选择题 在“文件包含”预处理语句的使用形式中,N#include后面的文件名用双引号(' ')括起时,寻找被包含文件的方式是______。
选择题 若有定义:int x, *pb;,则正确的赋值表达式是______。