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

what is 50+60 i need help
A 40 inch board is to be cut into three pieces so that the second price is 4times as long as the first piece and the third piece is 5 times as long as the first
SECOND TIME ASKING HELP!!! 6. Jackie has n nickels and q quarters in her pocket. The total value of the coins is at least $24.75. Write an inequality that repre
My boss is pregnant is it ok to knit him and his husband a baby sweater?
9,835/63 what is the answer and what is the remainder
How can you use an equation to make a prediction from a pattern?
Any gîrls here free to talk
I will give 50 points answer all why the order of the proof is correct d,a,c,b Please explan dosnt have to be super detailed haha 9. Order the steps below to co
What element is in period 4, group 12?
How can you use an equation to make a prediction from a pattern?