Multiple choice

The declaration int *px means that

  1. p is a pointer to integer x

  2. both p and x are pointers to integer quantity

  3. px is an array of integer pointer

  4. px is a pointer to an integer quantity

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The declaration 'int px' means px is a pointer variable that can hold the address of an integer quantity. The asterisk () indicates that px is a pointer, and 'int' specifies that it points to an integer type. Pointer variables store memory addresses, not the actual values.