#include &lt;iostream&gt;    using namespace std;     struct A     &#123;        int i;        char j;        float f;        void func&#40;&#41;;    &#125;;    void A :: func&#40;&#41; &#123;&#125;    struct B     &#123;        public:        int i;        char j;        float f;        void func&#40;&#41;;    &#125;;    void B :: func&#40;&#41; &#123;&#125;    int main&#40;&#41;     &#123;        A a; B b;        a.i = b.i = 1;         a.j = b.j = 'c';        a.f = b.f = 3.14159;        a.func&#40;&#41;;        b.func&#40;&#41;;        cout &lt;&lt; &quot;Allocated&quot;;         return 0;    &#125;
A. Allocated
B. Error
C. 3.14159
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;     struct A     &#123;        int i;        char j;        float f;        void func&#40;&#41;;    &#125;;    void A :: func&#40;&#41; &#123;&#125;    struct B     &#123;        public:        int i;        char j;        float f;        void func&#40;&#41;;    &#125;;    void B :: func&#40;&#41; &#123;&#125;    int main&#40;&#41;     &#123;        A a; B b;        a.i = b.i = 1;         a.j = b.j = 'c';        a.f = b.f = 3.14159;        a.func&#40;&#41;;        b.func&#40;&#41;;        cout &lt;&lt; &quot;Allocated&quot;;         return 0;    &#125;
A. Allocated B. Error C. 3.14159 D. None of the mentioned
Explanation:In this program, We used access specifiers for structures, As we declared all methods as public, The values can be allocated.