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

Which two entrepreneurs believed they were examples of social Darwinism at work?
You were overcharged $4.52 on your cell phone bill 3 months in a row. The cell phone company says that it will add -$4.52 to your next bill for each month you w
A bag contains 9 purple marbles,2 blue marbles, and 4 pink marbles. The probability of randomly drawing a blue marble is 2/15.What is the probability of not dra
If if takes 3 mins to sew 1in, how many mins will it take to sew 9ft?
Work out the area of a triangle of bass 12 cm and height 7 cm
factor the expression y2+6y-16
The number of stops a bus makes on a certain day is represented by the variable s. Which set of numbers best describes the value of the variable?  whole number
Which sentence uses the most precise language? (10 points) After I laundered my cell phone in my pants pocket, I was more careful to track its location, especia
Judaism had very little influence of human history
In the year 2002, the world population was estimated at 6 billion people. Based on research from the World Bank, about 20% lived on less than $1 per day. How ma