题目内容

If the pointer p is defined correctly (running on VC + +), to make p point to two successive integer dynamic storage units, the incorrect statement is ( )

A. p=2*(int *)malloc(sizeof(int));
B. p=(int *)malloc(2*sizeof(int));
C. p=(int *)malloc(2*4);
D. p=(int*)calloc(2, sizeof(int));

查看答案
更多问题

If there is int a[3][4]; then a+1 represents the address of a[0][0] (column address)

If there is int a[3][4]; then a[0]+3 represents the address of a[0][3]

If int (*pt) [3] is defined, then the following statement is correct ( ).

A. Three pointer variables with base type int are defined
B. Defines a pointer array pt with three elements whose base type is int
C. An integer array named *pt with three elements is defined
D. A pointer variable named pt is defined, which can point to a two-dimensional array with three integer elements in each row

C functions can call each other or main functions.

答案查题题库