πŸ“Š C++
Q. What is the output of below program?
Code:
#include<iostream.h>
void Execute(int &x, int y = 200)
{
 int TEMP = x + y;
 x+= TEMP;
 if(y!=200)
     cout<<TEMP<<x<<y"--";
}

int main()
{
 int A=50, B=20;
 cout<<A<<B<<"--";
 Execute(A,B);
 cout<<A<<B<<"--";
 return 0;
}
  • (A) 5020--7050200--5020--
  • (B) 5020--70120200--5020
  • (C) 5020--7012020--12020--
  • (D) 5020--5020--
πŸ’¬ Discuss
βœ… Correct Answer: (C) 5020--7012020--12020--

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
190
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
93%
Success Rate