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

Factor the following polynomials: a^2+a+72
what's the signal from Lady Macbeth that the drunken guards have passed out?
How can students in the photograph use the net to sample the invertebrates in the river.
Why are the physical representations of LeWitt's work usually temporary?
Nosotros tenemos. (la gripe)
What does the suffix t mean?
What is the answer to 14v+6=2(5+7v)
Find the value of -7 + 3(-12) ÷ (-3).
What did you learn about from the NASA's perseverance Rover land on Mars project?
Using context clues to help you, what is the significance of the word procure in the following passage: “He wanted me in a jar as much as the rest of them. The