What is the output of the following program?#include using namespace std; void doSomething (∫); int main () {int x = 2; cout << x << endl; doSomething (x); cout << x << endl; return 0; }void doSomething (int &num) {num = 0; cout << num << endl; }
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the output of the following program?#include using namespace std; void doSomething (∫); int main () {int x = 2; cout ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » What is the output of the following program?#include using namespace std; void doSomething (∫); int main () {int x = 2; cout << x << endl; doSomething (x); cout << x << endl; return 0; }void doSomething (int &num) {num = 0; cout << num << endl; }