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

Scientific writing Task: You charge your cell phone every night while you are sleeping. Throughout the school day you see your cell phone battery slowly decline
Solomon was best known as a wise king. a tolerant leader. a wealthy prophet. a frugal man.
A bus has 6 seat and 8 passengers,in what ways can the bus be filled
How did Louis XIV control the economy?
Francis was recording plant heights for an experiment. Each time that she took a measurement, she wrote it down. Then, she measured the plant again and compared
Which equation represents 4x – 3y = 15 when solved for y?
Which of the following is NOT a benefit of using a budget? A budget can help you keep track of your money. A budget can help you purchase anything you want. A b
calculate m-8-n if m=25 and n=7​
Select all that apply. The lowest frequency that humans can hear is approximately 60 Hz 40 Hz 20 Hz 10 Hz
Noah’s Café sells special blends of coffee mixtures. Noah wants to create a 20-pound mixture with coffee that sells for $9.20 per pound and coffee that sells fo