Q. Which is the correct syntax to declare a pointer to an int?

  • (A) int ptr;
  • (B) int *ptr;
  • (C) *int ptr;
  • (D) pointer int ptr;
πŸ’¬ Discuss
βœ… Correct Answer: (B) int *ptr;
Explanation: int *ptr declares a pointer to an integer.
Explanation by: Mr. Dubey
int *ptr declares a pointer to an integer.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
100
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate