menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
What is the output of the following program? #include using namespace std; void dosomething(int&; int main( { int x = 2; cout << x << endl; dosomething(x; cout << x << endl; return 0; } void dosomething(int& num { num = 0; cout << num << endl; }?
asked
May 11, 2018
144k
views
1
vote
What is the output of the following program? #include using namespace std; void dosomething(int&; int main( { int x = 2; cout << x << endl; dosomething(x; cout << x << endl; return 0; } void dosomething(int& num { num = 0; cout << num << endl; }?
Computers and Technology
high-school
Carisa
asked
by
Carisa
7.9k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
The code provided has numerous errors and I cannot decipher it. Please clarify, or if this is the actual code, the output would be a bunch of errors.
Savita
answered
May 15, 2018
by
Savita
8.4k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Aug 26, 2020
100k
views
What is the output of the following program? #include using namespace std; void doSomething(int&); int main() { int x = 2; cout << x << endl; doSomething(x); cout << x << endl; return 0; } void doSomething(int& num) { num = 0; cout << num << endl; }
Tsnorri
asked
Aug 26, 2020
by
Tsnorri
7.9k
points
Computers and Technology
high-school
1
answer
2
votes
100k
views
asked
Jan 15, 2020
98.6k
views
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;}
Jose Marin
asked
Jan 15, 2020
by
Jose Marin
8.3k
points
Computers and Technology
high-school
1
answer
1
vote
98.6k
views
asked
Oct 11, 2021
15.3k
views
What will the following code display? #include using namespace std; void doSomething(int); int main() { int x = 2; cout << x << " "; doSomething(x); doSomething(x); cout << x << endl; return 0; } void doSomething(int num) { static int x = 0; cout << x << " "; x=num; }
Durin
asked
Oct 11, 2021
by
Durin
8.8k
points
Computers and Technology
high-school
1
answer
3
votes
15.3k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
Disadvantages of using animation in advertising? advantages and disadvantages of using animation for education? advantages and disadvantages of using animation in entertainment?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org