A

Admin • 833K Points
Coach

Q. Which of the following is the correct syntax to declare a pointer in C?

  • (A) int *ptr;
  • (B) int ptr*;
  • (C) int &ptr;
  • (D) pointer int ptr;
  • Correct Answer - Option(A)
  • Views: 23
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

In C, the correct syntax to declare a pointer to an integer is 'int *ptr;'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.