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 element requires the least amount of energy to remove the most loosely held electron from a gaseous atom in the ground state? (1) bromine (3) sodium (2) c
solve for t. s=1/2gt^2
a car rent is $220 per week plus $0.25 per mile. Find the rental cost for a two week trip of 500 miles for a group of three people.
How to calculate PI number?
Under which conditions of temperature and pressure would a sample of H2(g) behave most like an ideal gas? (1) 0°C and 100 kPa (2) 0°C and 300 kPa (3) 150°C and
What is the position of the element ammonia in periodic table?
What is the total number of electron pairs shared between the carbon atom and one of the oxygen atoms in a carbon dioxide molecule?
The total cost of water heater including a 7% sales tax is 524.30 what is the cost of the water heater without the tax
goals require specific definition realistic planning and_____. A. journaling B. internships C. time limits
what is 7.4 in it's simplest form?