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

Why would a teacher say that meiosis is actually mitosis happening twice?
3 divided into 99 equals what
How do you get a liquid to a gas?
A car uses one gallon of gasoline for every 20 miles it travels. If a gallon of gasoline costs $3.98, how much will the gas cost, to the nearest dollar, to trav
multiple choice I realy need a help!!!!! 1) Eric lives in Aurora City.He read an article in his local newspaper about a proposed ordinance increasing the local
what was the most common jobs in 1800
what are some short term effects of earthquakes?
Use two examples to describe how insensitivity by the British toward Hindu and Muslim religious traditions caused the Sepoy Rebellion.
Scott has 1/3 of the computer games as Anish, and Anish has 1/2 as many games as Nick. Together they have 140 games. How many do they have each? Scott has......
How can high temperature lead to death