#include     using namespace std;    class three_d     &#123;        int x, y, z;        public:        three_d&#40;&#41; &#123; x = y = z = 0; &#125;        three_d&#40;int i, int j, int k&#41; &#123; x = i; y = j; z = k; &#125;        three_d operator&#40;&#41;&#40;three_d obj&#41;;        three_d operator&#40;&#41;&#40;int a, int b, int c&#41;;        friend ostream &amp;operator&lt;&lt;&#40;ostream &amp;strm, three_d op&#41;;    &#125;;    three_d three_d::operator&#40;&#41;&#40;three_d obj&#41;    &#123;        three_d temp;        temp.x = &#40;x + obj.x&#41; / 2;        temp.y = &#40;y + obj.y&#41; / 2;        temp.z = &#40;z + obj.z&#41; / 2;        return temp;    &#125;    three_d three_d::operator&#40;&#41;&#40;int a, int b, int c&#41;    &#123;        three_d temp;        temp.x = x + a;        temp.y = y + b;        temp.z = z + c;        return temp;    &#125;        ostream &amp;operator&lt;&lt;&#40;ostream &amp;strm, three_d op&#41; &#123;        strm &lt;&lt; op.x &lt;&lt; &quot;, &quot; &lt;&lt; op.y &lt;&lt; &quot;, &quot; &lt;&lt; op.z &lt;&lt; endl;        return strm;    &#125;    int main&#40;&#41;    &#123;        three_d objA&#40;1, 2, 3&#41;, objB&#40;10, 10, 10&#41;, objC;        objC = objA&#40;objB&#40;100, 200, 300&#41;&#41;;        cout &lt;&lt; objC;        return 0;    &#125;
A. 55, 106, 156
B. 55, 106
C. 55, 106, 159
D. none of the mentioned
Answer:A
#include     using namespace std;    class three_d     &#123;        int x, y, z;        public:        three_d&#40;&#41; &#123; x = y = z = 0; &#125;        three_d&#40;int i, int j, int k&#41; &#123; x = i; y = j; z = k; &#125;        three_d operator&#40;&#41;&#40;three_d obj&#41;;        three_d operator&#40;&#41;&#40;int a, int b, int c&#41;;        friend ostream &amp;operator&lt;&lt;&#40;ostream &amp;strm, three_d op&#41;;    &#125;;    three_d three_d::operator&#40;&#41;&#40;three_d obj&#41;    &#123;        three_d temp;        temp.x = &#40;x + obj.x&#41; / 2;        temp.y = &#40;y + obj.y&#41; / 2;        temp.z = &#40;z + obj.z&#41; / 2;        return temp;    &#125;    three_d three_d::operator&#40;&#41;&#40;int a, int b, int c&#41;    &#123;        three_d temp;        temp.x = x + a;        temp.y = y + b;        temp.z = z + c;        return temp;    &#125;        ostream &amp;operator&lt;&lt;&#40;ostream &amp;strm, three_d op&#41; &#123;        strm &lt;&lt; op.x &lt;&lt; &quot;, &quot; &lt;&lt; op.y &lt;&lt; &quot;, &quot; &lt;&lt; op.z &lt;&lt; endl;        return strm;    &#125;    int main&#40;&#41;    &#123;        three_d objA&#40;1, 2, 3&#41;, objB&#40;10, 10, 10&#41;, objC;        objC = objA&#40;objB&#40;100, 200, 300&#41;&#41;;        cout &lt;&lt; objC;        return 0;    &#125;
A. 55, 106, 156 B. 55, 106 C. 55, 106, 159 D. none of the mentioned