Which among the following is the correct syntax to access static data member without using member function?
A. className -> staticDataMember;
B. className :: staticDataMember;
C. className : staticDataMember;
D. className . staticDataMember;
Answer:B
Which among the following is the correct syntax to access static data member without using member function?
A. className -> staticDataMember; B. className :: staticDataMember; C. className : staticDataMember; D. className . staticDataMember;