单选题若要求从键盘读入含有空格字符的字符串,应该使用函数______。
A. getc ()
B. gets()
C. getchar()
D. scanf()
单选题(48)~(50)以下程序的功能是:建立一个带有头结点的单向链表,并将存储在数组中的字符依次转存到链表的各个结点中,请从与下划线处号码对应的一组选项中选择出正确的选项。 #include <stdlib.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"; struct node *head; head=CreatList(str);
单选题有以下程序:
#include
main()
{
char x=4;
printf(''%d\n'',x=x<<2);
}
程序运行后的输出结果是( )。
单选题以下叙述中正确的是
单选题若已定义一个有返回值的函数,则以下关于调用该函数的叙述中错误的是______。
单选题以下选项中合法的标识符是______。
单选题以下语句或语句组中能正确进行字符串赋值的是( )。
A. ehar以*sp; * sp = "right!";
B. char s[10] ;s = "right!";
C. char s [10]; * s = "right !";
D. char * sp = "right !";
单选题有以下程序 fun(int x,int y) main() {static int m=0,i=2; {intj=1,m=1,k; i+=m+1;m=i+x+y;return m; k=fun(j,m);printf("%d,",k); } k=fun(j,m);printf("%d\n",k);} 执行后的输出结果是
单选题下列叙述中错误的是( )。
单选题下列叙述中正确的是______。
单选题层次型、网状型和关系型数据库划分原则是______。
单选题以下程序的输出结果是 main() int a=0,i; for(i=1;i<5;i++) switch(i) case0: case3:a+=2; case 1: case2:a+=3; default:a+=5; printf(“%d/n”,
单选题设有如下程序段
#include <stdio.h>
char s[20]="Beijing",*p;
p=s;
则执行“p=s;”语句后,以下叙述正确的是______。
单选题有如下程序
#include<stdio.h>
main()
{
int x=072;
printf(">%d</n",x+1);
}
程序运行后的输出结果是______。
单选题若要求从键盘读入含有空格字符的字符串,应使用函数( )。
单选题以下结构体说明和变量定义中,正确的是
单选题设计数据库的存储结构属于
____
。
单选题若有如下说明: int a,b=5,*t= 则能完成a=b赋值功能的语句是 ( )
单选题若有定义和语句: int**pp,*p,a=20,b=10; pp=p=p=printf("%d,%d/n",*p,**pp); 则输出结果是( )。 A)20,10 B)20,20 C)10,20 D)10,10
单选题请选出正确的程序段______。
A. int*p scanf("%d"",p); ……
B. int*s,k; *s=100; ……
C. int*s,k; char *p,c; s= p=
*p='a'; ……
D. int *s,k; char *p,e; s= p=
s=p; *s=1; ……