A

Admin • 833K Points
Coach

Q. Comment on the following pointer declaration?

Code:
int *p, x;
  • (A) p is a pointer to integer, x is not
  • (B) p and x, both are pointers to integer
  • (C) p is pointer to integer, x may or may not be
  • (D) p and x both are not pointers to integer
  • Correct Answer - Option(A)
  • Views: 11
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

In the above given statement, variable p is a pointer to integer, while x is an integer variable.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.