#include &lt;iostream&gt;    using namespace std;    class Foo    &#123;        public:        Foo&#40;int i = 0&#41;&#123; _i = i;&#125;        void f&#40;&#41;        &#123;            cout &lt;&lt; &quot;Executed&quot;&lt;&lt;endl;        &#125;        private:        int _i;    &#125;;    int main&#40;&#41;    &#123;        Foo *p = 0;        p -&gt; f&#40;&#41;;    &#125;
A. Executed
B. Error
C. Runtime error
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    class Foo    &#123;        public:        Foo&#40;int i = 0&#41;&#123; _i = i;&#125;        void f&#40;&#41;        &#123;            cout &lt;&lt; &quot;Executed&quot;&lt;&lt;endl;        &#125;        private:        int _i;    &#125;;    int main&#40;&#41;    &#123;        Foo *p = 0;        p -&gt; f&#40;&#41;;    &#125;
A. Executed B. Error C. Runtime error D. None of the mentioned
Explanation:In this program, We passes the value to the class and printing it.