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

In slope-intercept form, what is the equation of the line passing through the points (2, 13) and (5, 22)
Explain how [tex] - 8 \frac{4}{3} [/tex] can be evaluated using properties of rational exponents to result in an integer answer.
Simplifying Rational Expressions
Determine the momentum of a helium atom (m = 6.696 x 10-27 kg) if the atom is traveling at 1.03% of the speed of light.
Steve bought a 15-pound bag of concrete. He spilled the bag into smaller bags that each holds 2 1/2 pounds. How many smaller bags did Steve fill?
Which statement expresses the irony of this particular kind of corruption to the democratic process? The founders of American democracy would not have expecte
The phrase "they gave the last full measure of devotion" means A. they measured the ground for the correct proportions. B. they lost their lives for what they
About what percent of whites owned slaves or belonged to a family who owned slaves
Explain how the imperfect is used to talk about the past.
Solve 5 over x minus 5 equals the quantity of x over x minus 5, minus five fourths for x and determine if the solution is extraneous or not