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

all fractions between 0 and 1/4
What do you mean by corrosion? How can you prevent it?
Write this statement as a conditional in if-then form: All triangles have three sides. A) If a figure is a triangle, then all triangles have three sides.B) If a
Write this statement as a conditional in if-then form: All triangles have three sides. A) If a figure is a triangle, then all triangles have three sides.B) If a
Solve the system of equations.3x+3y+6z=33x+2y+6z=74x+4y+7z=4
Given the inequalities y > 5x-8 and y >3x+4, find the point that satisfies both inequalities
What do you mean by corrosion? How can you prevent it?
What is a Mandala Autobiography?
among the qualities listed on the human relations scale, the most important one for the building new relationship is?
1. Why are there active volcanoes along the Pacific coast in Washington and Oregon but not along the East coast of the United States?