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

A bank says you can double your money in 10 years if you put $1,000 in a simple interest account. What annual interest rate does the bank pay? CLEAR CHECK
What effect does the tone of the excerpt have on the leader
Which statement can be modeled using the expression x-5? A. the difference of Jaime’s height and 5 B. the sum of Jaime’s height and 5 C. 5 more than Jaime’s
“In which quadrant would you find point P if the coordinates of P are (–5, ...” Assuming that P is not on an axis, what are the possible answers to this questio
Jim wants a game that cost $35.95. There is a 20% sale going on in the store, how much will he pay for the game?
The Congressional budget act of 1974 requires Congress
the table shows pattern p and patterns q complete the table
How does a manufacturer set his or her total output to maximize profit?
WILL MARK BRAINLIEST!!! NO NEED TO RUSH!!! What is an ecologist and a biochemist?
Water is a polar solvent. Which of the following will not dissolve in water? (3 points) 3Points A sugar B table salt C vinegar D olive oil