单项选择题
若有说明:int * p,m=51; n;,以下正确的程序段是 ( )
A.p=&m;
scanf("%d",&p)
B.p=&n;
scanf("%d",&P)
C.scanf("%d",&p)
p=&n;
D.p=&n;
p=&m;
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
有以下结构体说明和变量的定义,且如下图所示指针p指向变量a,指针q指向变量b。则不能把结点 b连接到结点a之后的语句是 ( ) struct node char data; struct noe *next; a,b, *p=&a, *q=&b;
点击查看答案
单项选择题
有以下程序 #includ2<stdio.h> #include<string.h> main() char b1[8]= abcdefg ,b2[8],*pb=b1+3, while(--pb>b1)strcpy(b2,pB) ; printf( %d n ,strlen(b2)); 程序运行后的输出结果是 ( )
A.8
B.3
C.1
D.6
点击查看答案
相关试题
有以下程序 #inelude<stdio.h> main...
以下程序调用findmax函数返回数组中的最大...
有以下程序 #include <stdio.h> mai...
下面程序的输出结果是 ( ) main() ...
下面不属于软件工程的3个要素的是 ( )