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

7. How does deforestation increase the level of carbon dioxide in the atmosphere? (Select all that apply.) increasing ozone in the atmosphere by decreasing the
What accusation was given by President Bush as a reason for invading Iraq but later proved false? A. The United States would be joined by France and Saudi Arabi
Which portions is NHLE currently engaged in?
What reaction occurs at the cathode of a galvanic cell that has the following: an aluminum electrode in an electrolyte with aluminum ions and a zinc electrode i
Cloud computing is primarily intended to allow users to
what is x? please help
how to find the volume of a room
a photograph of a hummingbird with its wings in the air about to land on a flower The artist created movement in the photograph by capturing the hummingbird mi
Josh wants to pour 70.83 grams of salt into a container. So far, he has poured 39.1 grams. How much more salt should Josh pour?
________ turn(s) into glucose in the body, providing long-lasting energy. Carbohydrates Iron Calcium Potassium