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 a desirable characteristic when choosing a line of credit?
Why did France send explorers to North America in the early 1500s
Tan(theta)= -1 Part1. Write an equation that expresses the value of theta in terms of an appropriate inverse trigonometric expression Part2. On the interval [0
Find the measure of ∠D∠D.
Mientras tú ___________________ en la bibloteca, yo estaba leyendo el periódico en el parque. A. estabas B. estás C. estábamos D. estaban
What are the “unwritten” selection criteria for Supreme Court judges?
Which of the following is a correct characteristic of New France? Constant severe conflicts between French settlers and the American Indians A well-defined l
In dream deferred the lines or crust and sugar over- like a syrupy sweet? Are which kind of
A factory bottles 360 bottles of juice in 5 minutes. Find the factory's unit rate of bottles per minute.
Michelle has just been informed she is terminally ill and has less than a year to live. michelle has started to yell at family members and her medical team when