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

How many grandparents have my grandparents? who can solve it is very good on maths! it is just a lpgic problem! i know the answer :)
What is 1997 from 2014????????????
least number that has 2, 3, 4, as factors
least number that has 2, 3, 4, as factors
which explorer sailed for france?
USE A NUMBER LINE TO FIND 8/9 / 8/45.
The significance of the Open Door Policy for the United States lay in its (A) providing a use for the Philippines as a way station between China and the United
Which of the allies suffered the greatest losses on D-Day
If it takes Mark twice as long to earn $6.00 as it takes Carl to earn $4.00, what is the ratio of Mark’s pay per hour to Carl’s pay per hour?
Please I have the answers I just want to double check them and Solvekey: B=42  A=93  N=29  X=361. (b-7)(2b-7)2. (4a-4)(5a-7)3. (5n-6)(4n+7)4. (2n=8)(8n+3)5. (6x