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 1/10 of 60,000
Which fraction is the greatest (represents the largest quantity) 1/3 3/8 2/5 1/2?
What was a strength for the British during the American Revolution? a. the size of their military b. their ability to acquire supplies c. fighting a war abro
A class has 6 boys and 15 girls, what is the ratio of boys to girls?
Which of the numbers 2, 3, 4, 5 , 6 and 10 are factors of 1900
506,709 in expanded form
9 more than the product of 51 and a number t
The percent composition of all elements in HClO3 is: a. 2% H, 20% Cl, 78% O b. 1% H, 42% Cl, 57% O c. 2% H, 68% Cl, 30% O d. None of the above
tomas grandfather is 100 years old.tomas grandfather is 10 times as old as tomas .how los is tomas?
Why were the Appalachian mountains important to the colonies?