题目内容

If numPtr is declared as a pointer variable, which expression can also be written as numPtr[i] ?

A. *numPtr + i
B. (numPtr + i)
C. *numPtr
D. *(numPtr + i)

查看答案
更多问题

Of the following expressions, which is the most commonly used. This is because such an expression allows each element in an array to be accessed as the address is “marched along(沿着…进行)” from the starting address of the array to the address of the last array element.

A. *ptNum--
B. *--ptNum
C. *ptNum++
D. *++ptNum

If nums is a two-dimensional integer array, what refers to element nums[0][0]?

A. *nums
B. *(*nums)
C. *(&nums)
D. &(*nums)

Any array subscript accessing used by a programmer is automatically converted to an equivalent pointer expression by the compiler.

The expression *(gPtr + 3) changes the address stored in gPtr.

答案查题题库