全部知识点
第701题
C语言主要是借助以下哪个功能来实现程序模块化?( )
第702题
以下叙述中错误的是( )。
第703题
若有定义和语句,int a,b;scanf("%d,%d",&a,&b);以下选项中的输人数据,不能把值3赋给变量a、5赋给变量b的是( )。
第704题
C语言中char类型数据占字节数为( )。
第705题
下列关系表达式中,结果为“假”的是( )。
第706题
若以下选项中的变量全部为整型变量,且已正确定义并赋值,则语法正确的switch语句是( )。
第707题
有以下程序,
#include<stdio.h>
int main()
{
int a=-2,b=0;
while(a++&&++b);
printf("%d,
%d\n",a,b);
}程序运行后的输出结果是( )。
第708题
设有定义,int x=o,* P;,立刻执行以下语句,正确的语句是( )。
第709题
下列叙述中正确的是( )。
第710题
有以下程序,
#include <stdio.h>
int main()
{ a=’H’;
a=(a>=’A’&&a<=’2’)?(a-’A’+’a’),
a; printf("%c\n",a);
}程序运行后的输出结果是( )。
第711题
有以下程序,
#include <stdio.h>
int f(int x);
int main()
{
int a,b=0;
for(a=0;a<3;a++)
{
b=b+f(a);putchar(’A’+b);
}
}
int f(int x)
{ return x * xl; }程序运行后的输出结果是( )。
第712题
设有定义,int x[2][3];,则以下关于二维数组X的叙述错误的是( )。
第713题
设变量P是指针变量,语句P=NULL;是给指针变量赋NULL值,它等价于( )。
第714题
有以下程序,
#include <stdio.h>
int main()
{
int a[]={10,20,30,40},*p=a,j;
for(i=0;i<=3;i++){a[i]=*P;p++;
}
printf("oAd\n",a[2]);
}程序运行后的输出结果是( )。
第715题
有以下程序,
#include <stdio.h>
#define N 3
void fun(int a[][N],int b[])
{ int i,j; for(i=0;i for(j=i;j }
int main()
{
int x[N][N]={1,2,3,4,5,6,7,8,9},y[N],i;
fun(x,y); for(i=0;i
}程序运行后的输出结果是( )。
第716题
有以下程序(strcpy为字符串复制函数,strcat为字符串连接函数),
#include <stdio.h>
int main()
{char a[10]="abc",b[10]="012",c[10]="xyz";
strcpy(a+1,b+2);
puts(strcat(a,c+1)); }程序运行后的输出结果是( )。
第717题
以下选项中,合法的是( )。
第718题
有以下程序,
#include <stdio.h>
int main()
{ char*s="[2]34";int k=0,a=0;
whil(s[k+1]!=’\o’)
{ k++;
if(k%2=o){a=a+(s[k]-’0’+1);continue; }
a=a+(s[k]-’0’);
printf("k=%d a=%d\n",k,a); }程序运行后的输出结果是( )。
第719题
有以下程序,
#include <stdio.h>
int main()
char a[5][10]={"one","tw0","three","four","five"};
int i,j;
char t, 、 for(i=0;i<4;i++) for(j=i+1;j<5;j++) if(a[i][O]>a[j][0])
{t=a[i][O];a[i][O]=a[j][O];a[j][O]=t;)
puts(a[1]);
}程序运行后的输出结果是( )。
第720题
有以下程序,
#include <stdio.h>
int a=1,b=2,
void funl(int a,int b) {printf( "%d%d",a,b); }
void fun2()
{ a=3;b=4; }
int main()
{ funl(5,6);
fun2();
printf("%d%d\n",a,b);
}程序运行后的输出结果是( )。