Which of the following statements are correct about static functions?

1.Static functions can access only static data.
2.Static functions cannot call instance functions.
3.It is necessary to initialize static data.
4.Instance functions can call static functions and access static data.
5.this reference is passed to static functions.

A. 1, 2, 4
B. 2, 3, 5
C. 3, 4
D. 4, 5
E. None of these

Recommended Answers

All 3 Replies

Do your own homework, please.

i think 1 and 3 are correct and i can not say wrong to others

F would certainly be a wrong answer.It is either A,B,C,D or E; or a combination of these.

commented: Process of elimination. Win. :D +13
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.