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

70 POINTS!!!! This is my fourth time asking, PLEASE HElP!!! What is the domain of the following points?(The following points are on the image below) A {-7, 3, 7
Where is the moon? I’m graduated so my points are up for grabs cause I’ll never use them. I have to at least as a question with it though.
Charlie took a nap. He fell asleep at 11:25 AM and he woke up at 3:12 PM. How long did he sleep?
I’ll give BRAINLIEST if correct
f+1<5 please tyyyyyyyyyyyyyyyy
Solve the equation. 1 1 ²x+3-2x = 4+²x+5 4 If necessary: Combine Terms Apply properties: Add Multiply To start over: Subtract Reset Divide​
How did the terrain of Bunker Hill assist the Patriots in their battle against Britain?
Solve the equation, 2x + 1 = 3, for x. Which of the following properties of equality did you apply? Question 5 options: A) Subtraction and division B) Subtracti
Which word best fills in the blank? The height of land above sea level is called altitude or O plateau O elevation Olatitude O direction
A watermelon weighs 4.2 kg and a pumpkin weighs 2 kg 250g Express the total weight of the items in kilograms. (30 points​