#include &lt;iostream&gt;    using namespace std;    template&lt;class T = float, int i = 5&gt; class A    &#123;        public:        A&#40;&#41;;        int value;    &#125;;    template&lt;&gt; class A&lt;&gt;     &#123;         public: A&#40;&#41;;     &#125;;    template&lt;&gt; class A&lt;double, 10&gt;    &#123;         public: A&#40;&#41;;     &#125;;    template&lt;class T, int i&gt; A&lt;T, i&gt;::A&#40;&#41; : value&#40;i&#41;    &#123;        cout &lt;&lt; value;    &#125;    A&lt;&gt;::A&#40;&#41;     &#123;        cout &lt;&lt; &quot;default&quot;;    &#125;    A&lt;double, 10&gt;::A&#40;&#41;     &#123;        cout &lt;&lt; &quot;10&quot; &lt;&lt; endl;    &#125;    int main&#40;&#41;     &#123;        A&lt;int, 6&gt; x;        A&lt;&gt; y;        A&lt;double, 10&gt; z;    &#125;
A. 6
B. 10
C. 6default10
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    template&lt;class T = float, int i = 5&gt; class A    &#123;        public:        A&#40;&#41;;        int value;    &#125;;    template&lt;&gt; class A&lt;&gt;     &#123;         public: A&#40;&#41;;     &#125;;    template&lt;&gt; class A&lt;double, 10&gt;    &#123;         public: A&#40;&#41;;     &#125;;    template&lt;class T, int i&gt; A&lt;T, i&gt;::A&#40;&#41; : value&#40;i&#41;    &#123;        cout &lt;&lt; value;    &#125;    A&lt;&gt;::A&#40;&#41;     &#123;        cout &lt;&lt; &quot;default&quot;;    &#125;    A&lt;double, 10&gt;::A&#40;&#41;     &#123;        cout &lt;&lt; &quot;10&quot; &lt;&lt; endl;    &#125;    int main&#40;&#41;     &#123;        A&lt;int, 6&gt; x;        A&lt;&gt; y;        A&lt;double, 10&gt; z;    &#125;
A. 6 B. 10 C. 6default10 D. None of the mentioned
Explanation:In this program, We are defining three templates and specializing it and passing the values to it and printing it.