A

Admin • 833K Points
Coach

Q. What is the correct syntax of accessing a static member of a class in C++?

Code:
Example class:
class A
{
public:
static int value;
}
  • (A) A::value
  • (B) A->value
  • (C) A^value
  • (D) A.value
  • Correct Answer - Option(A)
  • Views: 22
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.