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

Thomas Paines Common Sense Convinced Colonist To: A) Rebel Against The Authority Of The French B) Harass British Soldiers On The Street C) Go To Their Own Way A
Which interpretation is a possible theme of ovids
Determined by one’s emotional, physical and/or romantic attractions. Categories include, but are not limited to; gay, lesbian, attracted to some members of the
how many syllables does contentious have
You guys I legit don’t know how to do this so if someone can please help me it would mean a lot
can y + 8 can be translated as the quotient a number and eight
What is the mathematical formula for finding the volume of a pyramid
What executive department is headed by the attorney general?
What did Nelson Mandela do to be considered a hero? In your answer, list at least three actions and briefly explain the effects. You might need to locate outsid
A bank deposit that earns interest annually is given by the function f(x)=500(1.03)^x. What was the initial deposit?f(x)=500(1.03)^x