单项选择题
下列定义正确的是 ( )
A.static int a[]=1,2,3,4,5
B.int b[]=2,5
C.int a(10)
D.int 4e[4]
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
若指针p已正确定义,要使p指向两个连续的整型动态存储单元,则正确语句是 ( )
A.p=2 *(int *)malloc(sizeof(int));
B.p=(int*)calloc(2*sizeof(int));
C.p=(int*)malloc(2* sizeof(int));
D.p=2 *(int*)calloc(sizeof(int));
点击查看答案
单项选择题
若有说明: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;
点击查看答案
相关试题
有以下程序 #inelude<stdio.h> main...
以下程序调用findmax函数返回数组中的最大...
有以下程序 #include <stdio.h> mai...
下面程序的输出结果是 ( ) main() ...
下面不属于软件工程的3个要素的是 ( )