#include &lt;iostream&gt;    using namespace std;    template &lt;class T&gt;    class A    &#123;        public:        A&#40;int a&#41;: x&#40;a&#41; &#123;&#125;        protected:        int x;    &#125;;    template &lt;class T&gt;    class B: public A&lt;char&gt;    &#123;        public:        B&#40;&#41;: A&lt;char&gt;::A&#40;100&#41;         &#123;            cout &lt;&lt; x * 2 &lt;&lt; endl;        &#125;    &#125;;    int main&#40;&#41;    &#123;        B&lt;char&gt; test;        return 0;    &#125;
A. 100
B. 200
C. error
D. runtime error
Answer:A
#include &lt;iostream&gt;    using namespace std;    template &lt;class T&gt;    class A    &#123;        public:        A&#40;int a&#41;: x&#40;a&#41; &#123;&#125;        protected:        int x;    &#125;;    template &lt;class T&gt;    class B: public A&lt;char&gt;    &#123;        public:        B&#40;&#41;: A&lt;char&gt;::A&#40;100&#41;         &#123;            cout &lt;&lt; x * 2 &lt;&lt; endl;        &#125;    &#125;;    int main&#40;&#41;    &#123;        B&lt;char&gt; test;        return 0;    &#125;
A. 100 B. 200 C. error D. runtime error
Explanation:In this program, We are passing the values and manipulating it by using the template inheritance.