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

help fast will give brainliest help help!!!! 20. a student constructed the accompanying elliptical orbit of a moon revolving around a planet. the foci of this
The distance, s, that an object falls from rest varies directly as the square of the time, t, of the fall. a book dropped from the top of a building falls 144 f
Ellie hit a tennis ball into the air. the path of the ball can be modeled by y=-x^2+8x+2 where y represents the height in feet of the ball x seconds after it is
The table shows five transactions and the resulting account balance in a bank account, except some numbers are missing. Fill in the missing numbers. transactio
Which sentences use apostrophes correctly? a) Captain America's shield was made from vibranium. b) Thanos wanted to use the six Infinity Stones' power to restor
restaurant bill for 4 people is $120. The group leaves a tip of $18. What percent tip is that?
need a lot of help with this What is 473.69 rounded to the nearest whole number?
50 POINTS + BRAINLIEST !! A book starts on page 1 and is numbered on every page. If the total number of digits used is 516, how many pages are there in the boo
Amy is going to spend what she saves from her rent budget and entertainment. How much will she have for entertainment each month?
What is an incentive