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 of the following elements holds its electrons with the most energy? A.)Lithium (Li) B.)Beryllium (Be) C.)Boron
precise measurements of the motion of earth's lithosphere provide evidence for which process A. plate techtonics B. seafloor spreading C. mantle convection
How does deforestation affect bear population?
which gas is strongly correlated with earth's heating and cooling patterns
The length of giselles arm is 27 inches.The length of her lower arm is 17 inches.About what percent of giselles arm is her lower arm.
How many times can 6 go into 906
what does the term younger brothers imply about the chinese emperors view of other rulers?
In which ways can voters cast ballots?
Jason's savings account has a balance of $2179. After 5 years, what will the amount of interest be at 6% compounded quarterly? a. $760.80 c. $755.80 b. $65.37 d
Which of the following are chemicals? A.clothing B.food C.fuels D.all of the above