选择题 以下不能定义为用户标识符的是______。
选择题 若有以下程序
#include<stdio.h>
main()
{ int a=0,b=0,c=0;
c=(a-=++a), (a+=b, b+=4);
printf('%d,%d,%d\n',a,b,c);
}
则程序的输出结果是______。
选择题 以下对指针变量的操作中,错误的程序段是______。
选择题 以下叙述中正确的是______。
选择题 以下选项中,不合法的C语言用户标识符是______。
选择题 若有定义语句:“int a=10;double b=3.14;”,则表达式'A'+a+b值的类型是______。
选择题 以下关于C语言的叙述中正确的是______。
选择题 下列叙述中正确的是______。
选择题 负责数据库中查询操作的数据库语言是______。
选择题 有函数调用语句:func((exp1, exp2), (exp3, exp4, exp5));,此函数调用语句含有的实参个数是______
选择题 有如下程序:
#include<stdio.h>
struct pair
{
int first,second;
};
struct pair get_min_max(int*array,int len)
{
int i;
struct pair res;
res.first=array[0];
res.second=array[0];
for(i=1;i<len;i++)
{
if(array[i]<res.first)
res.first=array[i];
if(array[i]>res.second)
res.second=array[i];
}
return res;
}
main()
{
int array[5]={9,1,3,4};
struet pair min_max=get_min_max(array,5)
printf('min=%d,max=%din',min_max.first,min_max.second);
}
程序运行后的输出结果是______。
选择题 在下列选项中,没有构成死循环的是______。
选择题 一个栈的初始状态为空。现将元素1,2,3,A,B,C依次入栈,然后再依次出栈,则元素出栈的顺序是______。
选择题 设有表示学生选课的三张表,学生S(学号,姓名,性别,年龄,身份证号),课程C(课号,课名),选课SC(学号,课号,成绩),则表SC的关键字(键或码)为______。
选择题 下面描述中,不属于软件危机的表现的是______。
选择题 已知大写字母A的ASCII码是65,小写字母a的ASCII码是97。以下不能将变量c中的大写字母转换为对应小写字母的语句是
选择题 以下程序段完全正确的是______。
选择题 有以下程序:
#include <stdio.h>
void fun(int a, int b)
{ int t;
t=a; a=b; b=t;
}
main()
{ int c[10]={1,2,3,4,5,6,7,8,9,0}, i;
for(i=0; i<10; i+=2) fun(c[i], c[i+1]);
for(i=0; i<10; i++) printf('%d,', c[i]);
printf('\n');
}
程序的运行结果是______。
选择题 有以下程序
#include<stdio.h>
main()
{ int a=3;
printf('%d\n', (a+=a-=a*a));
}
程序运行后的输出结果是______。
选择题 有以下程序:
#include <stdio.h>
#define N 4
void fun(int a[][N])
{ int b[N][N],i,j;
for(i=0; i<N; i++)
for(j=0; j<N; j++)
b[i][j]=a[N-1-j][i];
for(i=0; i<N; i++)
for(j=0; j<N; j++)
a[i][j] = b[i][j];
}
main()
{ int x[N][N]={{1,2,3,4},
{5,6,7,8},
{9,10,11,12},
{13,14,15,16}
},i;
fun(x); fun(x);
for(i=0; i<N; i++)
printf('%d,',x[i][i]);
printf('\n');
}
程序的运行结果是______。
