πŸ“Š C++
Q. Which of the following is the correct way to define a function with a pointer parameter in C++?
  • (A) void myFunction(int *x) { }
  • (B) void myFunction(int x) { }
  • (C) Both A and B
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) void myFunction(int *x) { }

Explanation: The correct way to define a function with a pointer parameter is 'void myFunction(int *x) { }'.

Explanation by: Vinay
The correct way to define a function with a pointer parameter is 'void myFunction(int *x) { }'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
178
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
83%
Success Rate