#include &lt;iostream&gt;    using namespace std;    class A    &#123;        public:        A&#40;int n &#41;        &#123;            cout &lt;&lt; n;        &#125;    &#125;;    class B: public A    &#123;        public:        B&#40;int n, double d&#41;        : A&#40;n&#41;        &#123;            cout &lt;&lt; d;        &#125;        &#125;;    class C: public B    &#123;        public:        C&#40;int n, double d, char ch&#41;        : B&#40;n, d&#41;        &#123;            cout &lt;&lt;ch;        &#125;    &#125;;    int main&#40;&#41;    &#123;        C c&#40;5, 4.3, 'R'&#41;;        return 0;    &#125;
A. 54.3R
B. R4.35
C. 4.3R5
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    class A    &#123;        public:        A&#40;int n &#41;        &#123;            cout &lt;&lt; n;        &#125;    &#125;;    class B: public A    &#123;        public:        B&#40;int n, double d&#41;        : A&#40;n&#41;        &#123;            cout &lt;&lt; d;        &#125;        &#125;;    class C: public B    &#123;        public:        C&#40;int n, double d, char ch&#41;        : B&#40;n, d&#41;        &#123;            cout &lt;&lt;ch;        &#125;    &#125;;    int main&#40;&#41;    &#123;        C c&#40;5, 4.3, 'R'&#41;;        return 0;    &#125;
A. 54.3R B. R4.35 C. 4.3R5 D. None of the mentioned
Explanation:In this program, We are passing the value and manipulating by using the derived class.