A

Admin • 833K Points
Coach

Q. What is the correct syntax to declare pointer to pointer i.e., double pointer?

  • (A) type **pointer_name;
  • (B) type *&pointer_name;
  • (C) type *(*pointer_name);
  • (D) type **(pointer_name);
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

The correct syntax syntax to declare pointer to pointer i.e., double pointer is:

type **pointer_name;
Example:

int **ptr; //declaration double pointer

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.