选择题 下面各语句行中,不能正确进行操作的语句或声明是______。
选择题 关于字符常量,以下叙述正确的是______。
选择题 有以下程序:
#include<stdio.h>
main()
{ char c1='1', c2='2';
c1=getchar(); c2=getchar(); putchar(c1); putchar(c2);
}
当程序运行时输入a<回车>后,下列叙述中正确的是______。
选择题 设有以下语句
typedef struct TT
(char c;int a[4];}CIN;
则下面叙述中正确的是______。
选择题 有以下程序:
#include<stdio.h>
main()
{int i=3, j=5, *p=i, *q=j, **r;
r=q;
printf('%d, %d, %d, %d, %d\n', i, j, *p, *q, **r);
}
执行后的输出结果是______。
选择题 有以下程序:
#include<stdio.h>
void fun(int*s)
{ static int j=0;
do s[j]+=s[j+1]; while(++j<2);
}
main()
{int k, a[10]={1, 2, 3, 4, 5};
for(k=1; k<3; k++) fun(a);
for(k=0; k<5; k++) printf('%d', a[k]);
}
程序运行后的输出结果是
选择题 下列叙述中错误的是______。
选择题 有以下程序:
#include <stdio.h>
#include <string.h>
main()
{ char p[20]={'a','b','c','d'},q[]='abc',r[]='abcde';
strcat(p,r); strcpy(p+strlen(q),q);
printf('%d\n',strlen(p));
程序运行后的输出结果是______。
选择题 当a=3,b=5,c=9,d=7时,执行下面的程序段后,x的值为______。
if(a<b)
if(e<d)x=4;
else
if(a<c)
if(b<d)x=6;
else x=8;
else x=9;
else x=14;
选择题 执行语句printf('%u\n',+12345);的输出结果是______。
选择题 负责数据库中查询操作的数据库语言是______。
选择题 有以下程序:
#include<stdio.h>
main()
{ int a=7;
while(a--);
printf('%d\n', a);
}
程序运行后的输出结果是______。
选择题 树的度为3,且有9个度为3的结点,20个叶子结点,但没有度为1的结点。则该树中度为2的结点数为______。
选择题 面向对象的设计方法与传统的的面向过程的方法有本质不同,它的基本原理是______。
选择题 以下叙述正确的是______。
选择题 能正确表示a和b同时为正或同时为负的表达式是______。
选择题 以下叙述中正确的是______。
选择题 有以下程序
#include<stdio.h>
void fun(int n, int*s)
{
int f;
it(n==1)*s=n+1;
else
{
fun(n-1, f);
*s=f;
}
}
main()
{
int x=0;
fun(4, x);
printf('%d\n', x);
}
程序运行后的输出结果是______。
选择题 有以下程序:
main()
{ int k=4,n=0;
for(;n<k;)
{ n++;
if(n%!=0)continue;
k--; }
printf('%d\n',k,n);
}
程序运行后的输出结果是______。
选择题 以下叙述中正确的是______。