#include &lt;iostream&gt;    using namespace std;    struct A     &#123;        private:        int i, j, k;        public:        int f&#40;&#41;;        void g&#40;&#41;;    &#125;;    int A :: f&#40;&#41;     &#123;        return i + j + k;    &#125;    void A :: g&#40;&#41;     &#123;        i = j = k = 0;    &#125;    class B     &#123;        int i, j, k;        public:        int f&#40;&#41;;        void g&#40;&#41;;    &#125;;    int B :: f&#40;&#41;     &#123;        return i + j + k;     &#125;    void B :: g&#40;&#41;     &#123;        i = j = k = 0;    &#125;    int main&#40;&#41;     &#123;        A a;        B b;        a.f&#40;&#41;;         a.g&#40;&#41;;        b.f&#40;&#41;;         b.g&#40;&#41;;        cout &lt;&lt; &quot;Identical results would be produced&quot;;    &#125;
A. 50
B. Identical results would be produced
C. Error
D. Runtime error
Answer:A
#include &lt;iostream&gt;    using namespace std;    struct A     &#123;        private:        int i, j, k;        public:        int f&#40;&#41;;        void g&#40;&#41;;    &#125;;    int A :: f&#40;&#41;     &#123;        return i + j + k;    &#125;    void A :: g&#40;&#41;     &#123;        i = j = k = 0;    &#125;    class B     &#123;        int i, j, k;        public:        int f&#40;&#41;;        void g&#40;&#41;;    &#125;;    int B :: f&#40;&#41;     &#123;        return i + j + k;     &#125;    void B :: g&#40;&#41;     &#123;        i = j = k = 0;    &#125;    int main&#40;&#41;     &#123;        A a;        B b;        a.f&#40;&#41;;         a.g&#40;&#41;;        b.f&#40;&#41;;         b.g&#40;&#41;;        cout &lt;&lt; &quot;Identical results would be produced&quot;;    &#125;
A. 50 B. Identical results would be produced C. Error D. Runtime error
Explanation:In this program, We apply the access specifiers to both the class and the structure.