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

A farmer hauled in 120 bales of hay. Each of his cows ate 1 1/4 bales. How many cows the farmer feed?
What is the mean of 87, 93, 86, 90, and 84?
The value square root of 53 of lies between which two consecutive integers?
Can somoene help me with this question??How might the history of the U.S. have been different if the original thirteen states had been guaranteed a perpetual ma
The length of a diagonal of a cube with edge length 25cm
What are the 3 features of a typical seigneurie
5x+4y+100 in slope intercept form
The length of a diagonal of a cube with edge length 25cm
Which of the following can be considered fossils? a. a 1 billion year-old rock. b. a 1 billion year-old piece of amber. c. a 1 billion year-old piece of amber w
the cafeteria has 45 square  tables that can be pushed together to form one long table for the lacrosse team's banquet. Each square table can seat one person on