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

Find the surface area of this triangular prism.
describe the importance of socialization​
A man with a Body Mass Index (BMI) measuring 12% would fall into what range? Athletic Average Fit Obese​
One effect of the Watergate scandal was that: A. Richard Nixon resigned. B. Gerald Ford became president. C. many people questioned whether the power of the pre
Write the equation of the trigonometric graph
△DOG ~△? Complete the similarity statement and select the theorem that justifies your answer. **If they are not similar, select "none" for both parts
Hoa was born in Hue, but now she is living in Ha Noi with her aunt and uncle. She went to Ha Noi two years ago. Now she is studying at Quang Trung School. Yeste
the president .........the speech to his citizens.a.is giving b. telling c. visiting d. drinking ​
Rajah 9 menunjukkan laluan bagi kuching Fun Run. Berapakah sesaran bagi pelari tersebut? Mula 2 km 6 km Tamat 10 km Rajah Diagram 9 O A.5 km O B.6 km O c. 10 km
At a certain auto parts manufacturer, the Quality Control division has determined that one of the machines produces defective parts 18% of the time. A random sa