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

How is security handled in free market
A percent is a way of expressing a fraction with the denominator
Under the leadership of Mikhail Gorbachev, the doctrine of perestroika called for which of the End of exam following? A. Openness in communication B. More lo
chilling is most commonly practiced by
One number is 6 more than twice another. If their sum is 51, find the numbers. Which of the following systems of equations represents the word problem? y = 2x +
what happened when the first continental congress met
Your local minister has spoken to you about his retirement plans. Which account would he probably be discussing?
which synonym for necessary most strongly suggests a life-saving need? a: forced b: obligated c: required d: vital
Examples of cliche in true grit
square root of 2 is greater than or less than 1.8 repeated