πŸ“Š C++
Q. Which of the following is the correct way to define a static member function in C++?
  • (A) static void myFunction();
  • (B) void static myFunction();
  • (C) Both A and B
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) static void myFunction();

Explanation: The correct way to define a static member function is 'static void myFunction();'.

Explanation by: Rakesh Kumar
The correct way to define a static member function is 'static void myFunction();'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
108
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
88%
Success Rate