#include &lt;iostream&gt;    using namespace std;    void fun&#40;int x, int y&#41;    &#123;        x = 20;        y = 10;    &#125;    int main&#40;&#41;    &#123;        int x = 10;        fun&#40;x, x&#41;;        cout &lt;&lt; x;        return 0;    &#125;
A. 10
B. 20
C. compile time error
D. none of the mentioned
Answer:A
#include &lt;iostream&gt;    using namespace std;    void fun&#40;int x, int y&#41;    &#123;        x = 20;        y = 10;    &#125;    int main&#40;&#41;    &#123;        int x = 10;        fun&#40;x, x&#41;;        cout &lt;&lt; x;        return 0;    &#125;
A. 10 B. 20 C. compile time error D. none of the mentioned
Explanation:In this program, we called by value so the value will not be changed, So the output is 10