单选题为表示关系:x≥y≥z,应使用的C语言表达式是
A.(x>=y)&&(y>=z)
B.(x>=y)AND(y>=x)
C.(x>=y>=z)
D.(x>=y)&(y>=z)
单选题有以下程序:程序的输出结果是()。
单选题以下程序段中,与语句:k=a>b?(b>c?1:0):0;功能相同的是 A) if((a>b)&&(b>c))k=1; else k=0; B) if((a>b)‖(b>c))k=1; else k=0; C) if(a<=b)k=0; else if(b<=c)k=1; D) if(a>b)k=1; else if(b>c) k=1; else k=0;
单选题有以下程序:
#include<stdio.h>
int f(int n);
main()
{ int a=3, s;
s=f(a); s=s+f(a); printf("%d/n", s);
}
int f(int n)
{ static int a=1;
n+=a++;
return n;
}
程序运行后的输出结果是______。
单选题有以下程序:
#include<stdio.h>
struct ord
{ int x, y; }dt[2]={1, 2, 3, 4};
main()
{
struct ord *p=dt;
printf("%d, ", ++(p->x)); printf("%d/n", ++(p->y));
}
程序运行后的输出结果是______。
单选题以下关于typedef的叙述错误的是
单选题下列关于算法复杂度叙述正确的是______。
单选题以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转储到链表的各个结点中,请从与下画线处号码对应的一组选项中选择正确的选项。 #include <stdio.h> struct node char data; struct node *next; ; (48) CreatList(char *s) struct node *h, *p, *q; h=(struct node *)malloc(sizeof(struct node)); p=q=h; while (*s!='/0' ) p=(struct node *)malloc(sizeof(struct node)); p->data= (49) ; q->next=p; q= (50) ; s++; p->next='/0'; return h ; main() char str[]="link list"; struet node *head ; head=CreatList(str) ; …
单选题有以下程序
#include<stdio.h>
main()
{
int i;j;
for(i=1;i<4;i++)
{
for(j=i;j<4;j++)printf("%d*%d=%d",i,j,i*j);
printf("/n");
}
}
程序运行后的输出结果是______。
单选题有以下程序:
#include
#define S(x)2*(x)*x+1
void main()
{int k=1,j=3;
printf(''%d\n'',S(k+j));
}
程序运行后的输出结果是( )。
单选题数据厍系统的核心是{{U}} {{/U}}。
A. 数据模型
B. 软件开发
C. 数据库设计
D. 数据库管理系统
单选题以下叙述中正确的是______。
单选题有如下程序: #include <stdio.h> main()
{ int n=9; while(n>6) { n--;
printf("%d",n); }} 该程序的输出结果是( )。
A. 987
B. 876
C. 8765
D. 9876
单选题阅读以下程序:
#include<stdio.h>
main()
{ int case; float printF;
printf("请输入2个数: ");
scanf("%d%f",
printf("%d%f/n", case, printF);
}
该程序在编译时产生错误,其出错原因是______。
单选题已定义以下函数: fun(char*p2,char*p1) { while((*p2=*p1)!='/0'){p1++;p2++}} 函数的功能是 ______。
单选题有以下程序: #include <stdio. h> main( ) unsigned int a; int b=-1; a=b; printf(" % u", a);程序运行后的输出结果是( )。A) -1 B) 65535 C) 32767 D) -32768
单选题有以下程序:#include<stdio.h>int fun(int(*s)[4],int n,int k){int m,i;m=s[0][k];for(i=1;i<n;i++)if(s[i][k]>m)m=s[i][k];return m;}main(){int a[4][4]={{1,2,3,4},{11,12,13,14},{2l,22,23,24},{3l,32,33,34}};printf("%d\n",fun(a,4,0));}程序运行后的输出结果是( )。
单选题设有以下定义: char *st="how are you";下列程序段中正确的是______。
单选题下列程序的输出结果是{{U}} {{/U}}。
#include<stdio.h> main() {int
a=3,b=2,c=1; if(a<B)
if(b<O)c=0; else c++; printf("%d/n",c)
; }
A. 0
B. 2
C. 1
D. 3
单选题阅读下面程序,则程序段的功能是 #include"stdio.h" main() { int c[]={23,1,56,234,7,0,34},i,j,t; for(i=1;i<7;i++) { t=c[i];j=i-1; while(j>=0&&t>c[j]) { c[j+1]=c[j];j--;} c[j+1]=t} for(i=0;i<7;i++) printf("%d",c[i]); putchar('/n');}