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

Asexual reproduction is not as widespread in (plants, animals) as it is in (plants,animals) .
What does a rain forest smell like
All living things break down _________ to make energy.
erin buys a bag of peanuts that weighs 3/4 of a pound.  Later that week, the bag is 2/3 full.  how much does the bag of peanuts weigh now?
15 is 25% of what number
How could you leave home on Monday to go sailing on the ocean,sail for 1 hour on Sunday,and return home on monday
20/8 as a mixed number the simplest form
order from least to greatest 5.04;5.4; 5.406; 5.064
Ivan said that if a number end in 0 both 2 and 5 are factors of the number. Is he correct?why or why not
how do I write 0.632 in two different forms