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

The interior angle of a regular polygon is 19 times the size of the exterior angle. calculate the size of the interior angle and the number of sides the polygon
Prepare an art integrated assignment (Chart tabulation of music, costume, region, language association) of haryana
How much radiaton does a modern day phone have?+does it harm the human body?​
find the amount of elapsed time between the pair 9:10 am to 4:44 pm
Find ration of 350g to 7kg​
Triangle ABC has vertices at A(-2,3),B(-3,-6), and C(2,-1). Is triangle ABC a right triangle? If so, which angle is the right angle? O No, the triangle has no r
Tả cảnh không khí ngày tết
From a circular card sheet of radius 14cm, two circles of radius 3.5 cm and a rectangle of length 3cm and breadth 1cm are removed. Find area of remaining sheet
Which quotation shows a change in the direction of the story? "The operator rang his office; no answer. 'Sorry, but it looks like you're out of luck, Miss White
Almost all the helium in the universe was formed between 2-15 minutes after the Big Bang. True or False?