Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
class A
4.
{
5.
public:
6.
A(int n )
7.
{
8.
cout
Options:
A .  54.3R
B .  R4.35
C .  4.3R5
D .  None of the mentioned
Answer: Option A

In this program, We are passing the value and manipulating by using the derived class.
Output:
$ g++ der.cpp
$ a.out
54.3R



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers