选择题 以下叙述正确的是______。
选择题 有以下程序:
#include<stdio.h>
main()
{ char x='A';
x=(x>='A'x<='Z')?(x+32):x;
printf('%c\n', x);
程序的输出结果是
选择题 设有定义:“char*c;”,以下选项中能够使字符型指针C正确指向一个字符串的是______。
选择题 有以下程序
#include<stdio.h>
void fun(int *s)
{ static int j=0;
do s[j]+=s[j+1]; while(++j<2);
}
main()
{ int i,a[10]={1,2,3,4,5);
for(i=1; i<3; i++) fun(a);
for(i=1; i<5; i++)
printf('%d',a[i]);
printf('\n');
}
程序运行后的输出结果是______。
选择题 若有以下程序段:
struct st{int n;struct st*next;};
stmct st a[3]={5,&a[1],7,&a[2],9,'\0'},*p;
p=&a[0];
则以下选项中值为6的表达式是______
选择题 设有以下函数:
void fun(int n,char *s){…}
则下面对函数指针的定义和赋值均正确的是______。
选择题 以下叙述中正确的是______。
选择题 若有表达式(w)?(--x):(++y),则其中与w等价的表达式是______。
选择题 有以下程序:
#include <stdio.h>
#include <string.h>
typedef struct{ char name[10];
char sex;
int age;
}STU;
void fun(STU t)
{ strepy(t.name,'Tong');
t.age++;
}
main()
{ STU s[2]={'Hua','m',18,'Qin','f',19};
fun(S[1]);
printf('%s,%d,%s,%d\n',s[0].name,s[0].age,s[1].name,s[1].age);
}
程序运行后的输出结果是______。
选择题 有以下程序
#include <stdio.h>
void main()
{
int n=2,k=1;
while(!(k>0||n++));
printf('%d %d\n',k,n);
}
程序运行后的输出结果是______。
选择题 以下叙述中错误的是
选择题 以下非法的定义语句是
选择题有两个关系R和S,如下图所示:由关系R通过运算得到关系S,则所使用的运算为______。
选择题 若变量都已正确说明,则以下程序段输出结果为______。
#include<stdio.h>
main()
{char a='a';
int b=2;
printf(a>b?'***a=%d':'###b=%d',a,b);
}
选择题 以下叙述中正确的是______。
选择题 深度为7的完全二叉树中共有125个节点,则该完全二叉树中的叶子节点数为______。
选择题 以下能正确定义一维数组的选项是______。
选择题 以下叙述中错误的是______。
选择题 以下选项中正确的语句组是______。
选择题有两个关系R和T如下:则由关系R得到关系T的操作是______。