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

At the end of the year, a library reported 32 books lost or stolen and 24 books were sent out for repair. If the library originally had 1,219 books, how many we
What is the equation of the line described below written in slope-intercept form? the line passing through point (0, 0) and parallel to the line whose equation
Which example depicts the adaptation of an intertidal organism to the force of crashing waves and strong currents?
What is the best definition of "bias"? a) an inclination of temperament or outlook, an instance of such prejudice b) a bilateral persuasive speech c) to say you
Write me a short story about hitler
A line passes through the points (9, 30) and (18, 30). Which statement is true about the line?
What did students take away from the discussion between the author and Mr.Brock, according to the author of "On Writing WellA. Authors are boring and often have
A uniform electric field with a magnitude of 125 000 N/C passes through a rectangle with sides of 2.50 m and 5.00 m. The angle between the electric field vector
three types of health
According to hymn to the nile, what is the most important gift of the nile