menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
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 &…
Ask a Question
Questions
Unanswered
Tags
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 &…
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 & Tech
high-school
Carisa
asked
by
Carisa
7.6k
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 & Tech
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 & Tech
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 & Tech
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.4m
questions
12.2m
answers
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
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
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org