ehuntsman541 ehuntsman541
  • 02-03-2018
  • Computers and Technology
contestada

Write a function addone that adds 1 to its integer reference parameter. the function returns nothing. submit

Respuesta :

tonb
tonb tonb
  • 02-03-2018
void addone(int &n) { n++; }

This would do the trick in C++, assuming that's what you're looking for.
Answer Link

Otras preguntas

How do you think the information about his parents' difficulties early in their relationship affected McCandless?
PLEASE HELP, I’m confused. I don’t know how to do this stuff... explain your answer. Thank you!!!!
the harappa is the ___ of the ancient culture that existed along the indus river.
0.326 written in two ways
Which type of variable is kept unchanged throughout the experiment so as not to influence the experiments outcome?
The sum of three consecutive multiples of three are 54 more than twice the smallest number. What are the three integers?
What is the term for the actual amount of money available in a fiscal year that is set by Congress
3 Jen wants to tile the floor of her kitchen. The floor is rectangular and measures 12 feet by 8 feet. If it costs $2.50 per square foot for the materials, what
Why did the delegates of the Philadelphia convention create the electoral college? Has the electoral college proven an effective system for electing the preside
Write a word phrase for each algebraic expression. 25-0.6x 2/3y+4 10 points