Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following is correct about static variables?

a) Static functions do not support polymorphism
b) Static data members cannot be accessed by non-static member functions
c) Static data members functions can access only static data members
d) Static data members functions can access both static and non-static data members

Answer: c
Explanation: Static member functions can access static data members only. Static member functions can be overloaded. Static data members can be accessed by non-static member functions.

Join The Discussion