menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Write the header for a function addOne that accepts a single integer reference parameter and returns nothing. Name the parameter x.
Ask a Question
Questions
Unanswered
Tags
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 & Tech
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 & Tech
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 & Tech
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 & Tech
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.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?”
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
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