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

MOST early cities developed along the Equator developed along waterways had nomadic residents were gentrified were on mountain tops
WILL GIVE BRAINLIEST The solution to 15x = 30 is x =___. (Only input the number.)
As slave populations grew during the mid-eighteenth century, elaborate ______ networks gradually developed, often uniting enslaved people on different plantatio
growth of a plant in response to light is called____.
3. The Articles of the Constitution include the Supremacy Clause, which states that * * the Constitution is the supreme law of the United States. laws passed by
A sports ball has a diameter of 20 cm what’s the volume of the ball?
difference between stigma and anther​
How many solutions does the equation (―3)(+ 1)(+ 5) = 0 have? What are the solutions?
Write an Equivalent Expression by Combining like terms: 2y + 3 - 5y + 4 + 8y
6. Read the following sentence from "The Cabuliwallah." (1 point) "So precarious was the position of my hero and my heroine that my first impulse was to stop an