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

if a rock is sitting in the dirt, the normal force from the ground and________are acting on it
Lily buys a sweater that is on sale for $42, which is 75% of the original price of the sweater. What was the original price of the sweater? A) $168 B) $31 C)
how can you use Newton's second law to find force
why did ancient sumer most likely develop in mesopotamia? A) The land is situated on a crossroads of trade B) Highlands shelter the land from outside invasion C
What is the difference between nomads and hunter-gatherers of ancient times?
0.729 rounded by the nearest tenth
Evaluate the expression when x = 5: 10 I7-xI (A)-120 (B)20 (C)-20 (D)123
Why did reform movements grow out of the Realist movement?
In 1818, Great Britain agreed to allow American settlers to settle in the ___________ Territory for ______ years.
Napoleon's empire spread the ideas of French Revolution in Europe. One of these ideas was nationalism. How was Napoleon's domination a factor in spreading natio