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

What is the density of a block with a mass of 36 g and a volume of 9 cm3?.
Which statement can be used to prove that a given parallelogram is a rectangle?
Anthony bought six ponds of fish for $13.80. based on that cost , how much would 2.5 ibs of the same fish cost?
which substance can be broken down by chemical means?1) Magnesium 2) Manganese3) Mercury4) Methanol
what do I do first? do I multiply 11×11.091 first?
What is the definition of Constantine?
Y=4 over 5x-2 in standard form step by step
Isaac is using a drug that can be helpful to people who need it, but is harming his body. His motivation is to gain muscle for a sports team he wants to join. W
Which of the following statements is true about solar eclipses? The Earth blocks the light of the sun, and casts a shadow on the moon. Solar eclipses usually
What is the sign of the product (–7)(–2)(–5)(1)? Positive, because the products (–7)(–2) and (–5)(1) are negative, and the product of two negative numbers is p