class A { const int k; public: void fun() { cout<

  1. k will display garbage values

  2. k will print 0, as default constructor is called.

  3. Error as no constructor is defined.

  4. Error, as main should precede with int and should return 0.


Correct Option: C

Find more quizzes: