menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write the header for a function addOne that accepts a single integer reference parameter and returns nothing. Name the parameter x.
asked
Dec 4, 2018
228k
views
4
votes
Write the header for a function addOne that accepts a single integer reference parameter and returns nothing. Name the parameter x.
Computers and Technology
high-school
Morten Jensen
asked
by
Morten Jensen
7.7k
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
4
votes
In C++ it would be: void addOne(int& x);
In C# it would be: void addOne( ref int x)
In JAVA you would have to package the integer inside an object, since it doesn't pass value types by reference.
GodsCrimeScene
answered
Dec 9, 2018
by
GodsCrimeScene
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
May 24, 2020
180k
views
Assume a function addOne that accepts a single integer reference parameter and returns nothing. Call the function, passing it the variable i which has already been declared.
Yogesh Waghmare
asked
May 24, 2020
by
Yogesh Waghmare
8.2k
points
Computers and Technology
high-school
1
answer
1
vote
180k
views
asked
Sep 23, 2019
231k
views
Write a function addone that adds 1 to its integer reference parameter. the function returns nothing. submit
Foolbear
asked
Sep 23, 2019
by
Foolbear
7.6k
points
Computers and Technology
high-school
1
answer
5
votes
231k
views
asked
Nov 2, 2020
2.9k
views
Write a function addOne that adds 1 to its integer referenceparameter. The function returns nothing.
Alexander Bell
asked
Nov 2, 2020
by
Alexander Bell
8.2k
points
Computers and Technology
college
1
answer
1
vote
2.9k
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