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

which formation was created by glaciers in the last ice age
which type of solar radiation is the least powerful
five less than twice a number is equal to 57
what is the solution of the system of equations? y = –3x 7 y = 2x – 8 a. (3, –2) b. (–15, 52) c. (–2, 3) d. (0.2, –7.6)
Z varies inversely with the product of x and y. When x=2 and y=4, z=0.5 what is the value of z when x=4 and y=9?
why is hyperbole useful in poetry
Use the counting princcple to find the probability of chooding the 8 wining lottery numbers whene the numbers are chosen at random from 0 to 9
Which of the following is the last step in creating a budget?
which function do you evaluate first in g(f(x))?
choose an equation in slope-intercept form for the line that passes through (-8,1) and is perpendicular to the y=2x-17. select one: a. y= -(1/2)x - 5 b. y= -2x