1.

What will be the output of the following program?

#include<iostream.h> class IndiaBix
{ static int count; public: static void First(void) { count = 10; } static void Second(int x) { count = count + x; } static void Display(void) { cout<< count << endl; } };
int IndiaBix::count = 0; int main()
{ IndiaBix :: First(); IndiaBix :: Second(5); IndiaBix :: Display(); return 0; }

A. 0
B. 5
C. 10
D. 15
E. The program will report compile time error.
Answer» E. The program will report compile time error.


Discussion

No Comment Found

Related MCQs