33.
Pick out the correct statement.

35.
What will be the output of the following C++ code?
#include <iostream>
#include <complex>
using namespace std;
int main() 
{
   complex<double> c1(4.0, 16.0), c2;
   c2 = pow(c1, 2.0);
   cout << c2;
   return 0;          
}

36.
What will be the output of the following C++ code?
#include <iostream> 
using namespace std; 
class S 
{ 
	int m; 
   public: 
	#define MAC(S::m)
};
 
int main(int argc, char const *argv[])
{
	cout<<"Hello World";
	return 0;
}

38.
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main ()
{
    int a;
    int * ptr_b;
    int ** ptr_c;
    a = 1;
    ptr_b = &a;
    ptr_c = &ptr_b;
    cout << a << "\n";
    cout << *ptr_b << "\n";
    cout << *ptr_c << "\n";
    cout << **ptr_c << "\n";
    return 0;
}

Read More Section(Classes and Objects in C plus plus)

Each Section contains maximum 100 MCQs question on Classes and Objects in C plus plus. To get more questions visit other sections.