下面各选项中,均是C语言合法标识符的选项组是A.33 we auto B._23 m

题型:单项选择题

问题:

下面各选项中,均是C语言合法标识符的选项组是

A.33 we auto

B._23 me _3ew

C._43 3e_ else

D.ER-DF 32

考点:计算机等级考试C语言二级C语言笔试
题型:单项选择题

下列给定程序中,函数fun的功能是:统计带头结点的单向链表中结点的个数,并存放在形参n所指的存储单元中。
请在下划线处填入正确的内容并将下划线删除,使程序得出正确的结果。
注意:部分源程序给出如下。
不得增行或删行,也不得更改程序的结构!
试题程序:
#include<stdio.h>
#include<stdlib.h>
#defineN 8
typedef street list

int data;
struct list*next;
SLIST;
SLIST*creatlist(int*a);
void outlist(SLIST*);
void fun(SLIST*h,int*n)

SLIST*p;
/***************found***********/
______=0;
p=h->next;
while(p)

(*n)++;
/*************found***********/
p=p->______;


main()

SLIST*head;
int a[N]=12,87,45,32,91,16,20,48,num;
head=creatlist(a);
outlist(head);
/*************found*********/
fun(______,&num);
printf("\number=%d\n",num);

SLIST*creatlist(int a[])

SLIST*h,*p,*q; int i;
h=p=(SLIST*)malloc(sizeof(SLIST));
for(i=0;i<N;i++)

q=(SLIST*)malloc(sizeof(SLIST));
q->data=a[i];p->next=q;
p=q;

p->next=0;
return h;

void outlist(SLIST*h)

SLIST*p;
p=h->next;
if(p==NULL)
printf("The list is NULLP,n");
else

printf("\nHead");
do

printf("->%d",p->data);
p=p->next;
while(p!=NULL);
printf("->End\n");

题型:单项选择题

下列程序的运行结果是( )。 #include<stdio.h> void fun(int*s,int*p) { static int t=3;*p=s[t];t--; } void main() { int a[]={2,3,4,5},k;int x;for(k=0;k<4;k++){ fun(a,&x); printf("%d,",x);} }

A.5,4,3,2

B.2,3,4,5,

C.2,2,2,2,

D.5,5,5,5,

题型:单项选择题

-10,1,12,32,61,(),182。

A.114

B.112

C.109

D.108

题型:单项选择题

心理治疗中,医生要设身处地的理解患者,把患者的内心世界理解为好像是自己的,能分享患者的情感。这是()

A.理解

B.通情

C.移情

D.反移情

题型:单项选择题

菊花萝卜

更多题库