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

When is a semi colon necessary
Bantu tribes stopped their migrations in the areas of Zimbabwe and _____. Zambia South Africa Madagascar Congo
In what year did Abraham Lincoln formally issue the Emancipation Proclamation? a. 1861 b. 1862 c. 1863 d. 1865
Jill is making lemonade. the original concentraton was 25 ml of concentrate to 2 l of water people found that too strong so she decreased the concentration to 2
The cafeteria has 75 tables and 912 chairs. What is the total number of tables and chairs?
What were some of the characteristics of the delegates to the constitutional convention?
is 3/4 bigger than 7/8
HELP PLEASE !!!!!!!! If the function f(n) models the amount of man-hours it takes to construct (n) televisions that are ready to ship from a electronic manufac
The King James Bible was written by a. King James. b. a large group of scholars. c. Pope John IV. d. the reformation council.
Why did the North industrialize faster than the South? A. The Northern workers had a better work ethic. B. Southern climate made it difficult to operate facto