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

The dimensions of a brick that weighs 25 N are 0.19 m × 0.07 m × 0.095 m. What pressure does the brick exert on the ground if it is resting on its largest face?
Find an equivalent ratio for 22/55 and then write the proportion
if you live 35 miles from work & drive 35 mph how long would it take to get there
16 increased by twice a number is -24. Find the solution??
The base of right prism is rhombus of diagonal is 6 and 8cm and altitude is 12 cm find total surface area
What is the lateral area of the rectangular prism? Assume the prism is resting on its base. A. 135 in2 B. 270 in2 C. 300 in2 D. 310 in2
What is the approximate circumference if the circle that has a center at (2,1) ans passes through the point (2,5). 1. 8 units 2. 13 units 3. 25 units 4. 50 unit
Who were the Nazis ?
The number of waves that pass a particular point in a unit of time is called the __________ of the waves. (a) rarefaction (b) compression (c) amplitude (d) freq
The number of waves that pass a particular point in a unit of time is called the __________ of the waves. (a) rarefaction (b) compression (c) amplitude (d) freq