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

What is the name of an interior angle of a triangle that shares a side and a vertex with an exterior angle of the triangle? A. exterior angle B. adjacent inter
I'm having trouble solving this reflection please help
which has the greater volume? 1.a piece of paper rolled into a cylinder lengthwise, or the same piece of paper rolled into a cylinder widthwise
find the value of s for which WXYZ is a parallelogram
The pronunciation aid that determines the stress placed upon a syllable is the _____. a.apostrophe b.accent mark c.exclamation point
whereabout in the body cells are the genes found
3x + 2y = 2 -2x + y = 8 Solve the system of equations. A) (-2,4) B) (4,-2) C) (-4,-2) D) (5/4, -1/2)
Children with separation anxiety are over dependent upon ____.
How do you connect intercepts and zeros
What is 66.67. To the nearest hundredth