Assume that a program includes the short *agePtr = NULL; statement. The name of the pointer is _____

*agePtr
age*Ptr
agePtr
nan

The correct answer is C. agePtr.

A pointer is a variable that stores the address of another variable. In this case, the pointer agePtr stores the address of the variable age. The asterisk (*) in front of agePtr indicates that it is a pointer.

Option A is incorrect because *agePtr is the value stored in the pointer agePtr. It is not the name of the pointer.

Option B is incorrect because age*Ptr is not a valid syntax.

Option D is incorrect because NULL is a constant that represents the null pointer. It is not the name of the pointer.

Exit mobile version