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

2 3/5 + 2/3 =? Please explain hurry!!!!!!!!!!!!!!!!
To identify which of lucy's brain areas was most active when she talked, neuroscientists gave her a temporarily radioactive form of glucose and a( n )
Which stage of the human life course became a clear and distinct stage only in modern societies?
The distance on a map between two cities is 6.5 cm if 1 cm = 8k on the map how many miles are the two cites apart from each other 1 km= 0.621 mi
Refer to this summary equation of photosynthesis to complete the sentences about chemical bonds and reactions. 6 co2 + 6 h2o → c6h12o6 + 6 o2
The structure of a cell nucleus would be seen in the greatest detail by using what
What is plausible evidence supporting the hypothesis that birds evolved from dinosaurs?
What are values? Give me two examples of values you have.
decide whether the statement is true or false 0∈∅
summarize the main ideas of jesus' teaching