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

Shortly after his inauguration, President Jefferson instituted new rules of etiquette and customs of the White House in order to communicate to the public a(n)
Geometry help please explain
Renaud: Voulez-vous aller au cinéma? Jack: _______ Renaud: Tu devrais venir avec nous, Jack. OA. Bien sûr OB. Oui, nous devons y aller OC. Je ne veux rien faire
Write an equation of the line with the given slope and y-intercept: m = -5,b=4a. y = -5x + 4 b. y = 5x + 4 c. y= -57-4 d. y = 5x-4 Please select the best answer
What is the 13th square number?​
Which of the following conditions favor the SN1 mechanism as opposed to the SN2 mechanism? I. tertiary alkyl halide II. primary alkyl halide III. polar solven
what Are the process of photosynthesis and cellular respiration produces?
In the 10 commandments the first __ describe our duties to God whereas the next __ deal with our responsibilities to each other.
Please help me with this question
An expression with only one term is called a