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

PLZ HELP ME!!! Which sentence is punctuated correctly? A. "It's not likely" their mother stated with a frown. B. They exclaimed, "But we must stay in France
I need help please??!!
It takes 2 1/4 kilometers of thread to make 3 1/2 boxes of shirts. How many kilometers of thread would it take to make 8 boxes?
Which is more important, the intention or the act?
Who says the following and why? Excuse the straight question... Are you a man of good character where women are concerned? Pickering is making sure Higgins has
Which of the following best describes the industrial revolution?A. fewer people living healthier, longer livesB. more rural communities, with closer ties to org
Who when where and why happen in Santa Fe New mexico
if an organism's diploid number is 12, its haploid number is ___
If an object falls for 4 seconds, how fast is it going when it hits the ground?
What is the domain of the function graphed below?