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

Can you help with all label them by there numbers plz thank you
commenced business by Sarita with her bank balance 100000 and furniture 100000​
find the value of each variable
"Green forest are Nepal's wealth" (Hariyo ban, Nepalko dhan). Explain this statement.​
what is yournamemy name is amil​
Simplify (4ab^2)^3 Any help is appreciated
What is the relationship between a preimage and its image after a dilation?
ABDE is an isosceles trapezoid. Select all pairs of congruent triangles. A. Triangle ABE and triangle DBE B. Triangle ABD and triangle DAE C. Triangle ABE and t
A 1/2-mile long train enters a 2-mile long tunnel traveling at a speed of 10 mi/h. How many minutes pass from the time the front of the first train car enters t
Round the fraction to the nearest 1/2. 1/9 A. 0 B. one-half C. 1