选择题 以下4个选项中,不能看作一条语句的是______
选择题 以下函数定义的类型符是______。
fff(double x)
{printf('%f',x+x);
}
选择题 以下程序段中的变量已定义为int类型:
sum=pad=5;pAd=sum++,pAd++,++pAd;
printf('%d\n',pad);
程序段的输出结果是______。
选择题 若定义了以下函数:
void f(…)
{ …
*p=(double*)malloc (10 * sizeof (double));
…
}
p是该函数的形参,要求通过p把动态分配存储单位的地址传回主调函数,则形参p的正确定义应当是______
选择题 数据库管理系统中负责数据模式定义的语言是______。
选择题 有下列程序:
#include<stdio.h>
#define N 4
int fun(int a[][N])
{int i,y=0;
for(i=0;i<N;i++)
y+=a[0][i]+a[N-1][i];
for(i=1;i<N-1;i++)
y+=a[i][0]+a[i][N-1];
return y;
}
main()
{int y,x[N][N]={{1,2,3,4},
{2,1,4,3},
{3,4,1,2},
{4,3,2,1}};
y=fun(x);
printf('%d',y);
}
程序执行后的输出结果是______。
选择题 以下叙述中正确的是______。
选择题 有以下程序:
#include<stdio.h>
int f(int x)
{
int y;
if(x==0||x==1)return(3);
y=x*x-f(x-2);
return t;
}
main()
{
int z;
z=f(3);
printf('%d\n',z);
}
程序运行后的输出结果是______。
选择题 设有定义:char str[]='ABCD',*p=str;则语句printf('%d\n', *(p+4));的输出结果是
选择题 下列说法不正确的是 。
选择题 以下选项中,能表示逻辑值“假”的是______。
选择题 有以下程序:
#include<stdio.h>
double f(double x);
main()
{ double a=0;
int i;
for(i=0;i<30;i+=10)a+=f((double)i);
printf('%3.0f\n',a);
}
double f(double x)
{ return x*x+1;}
程序运行后的输出结果是______。
选择题 算法一般都可以用_____控制结构组合而成。
选择题 以下程序:
#include<stdio.h>
main()
{char str[10];
scanf('%s',str);
printf('%s\n',str);}
运行上面的程序,输入字符串how are you,则程序的执行结果是______。
选择题 有以下程序:
#include <stdio.h>
main()
{ char ch='D';
while (ch>'A')
{ ch --;
putchar(ch);
if(ch=='A') break;
putchar(ch+1);
}
}
程序运行后的输出结果是
选择题 逻辑模型是面向数据库系统的模型,下面属于逻辑模型的是______。
选择题 下列关于栈叙述正确的是______。
选择题有三个关系表R、S和T如下,其中三个关系对应的关键字分别为A,B和复合关键字(A,B)。表T的记录项(b,q,4)违反了______。
选择题 有以下程序:
#include <stdio.h>
void fun(int x,int y,int *c,int *d)
{ *c=x+y; *d=x-y;}
main()
{ int a=4,b=3,c=0,d=0;
fun(a,b,c,d);
printf('%d%d\n',c,d);
}
程序的输出结果是______。
选择题 有如下定义:
struct st
{ int x;float y;} rec,*px;
若要使指针px指向rec的成员x,正确的赋值语句是______