Discussion :: Objects and Classes
-
Which of the following statement is correct about the program given below?
#include class Freshergate { static int x; public: static void SetData(int xx) { x = xx; } void Display() {cout }int Freshergate::x = 0; int main() { Freshergate::SetData(33); Freshergate::Display(); return 0; }
|
A.
The program will print the output 0. |
|
B.
The program will print the output 33. |
|
C.
The program will print the output Garbage. |
|
D.
The program will report compile time error. |
Answer : Option D
Explanation :
No answer description available for this question.
Be The First To Comment

Whatsapp
Facebook