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

What must be true for an act to be considered embezzlement? A. The criminal must have been in the employment of the party from whom she stole. B. The criminal m
how did the pilgrims adopt to their surroundings
Since 1987, South Korea's government has had a structure like that of Question 10 options: Russia. the United States. Japan. China.
Whoever answers I’ll mark brainliest
Line s has an equation of y=8x+7. Line t is perpendicular to line s and passes through (–8,–2). What is the equation of line t?Write the equation in slope-inter
please help asap ill give brainlest
Read the passage. Long ago in the Imperial Court, the emperor fell in love with a certain lady. She was not of a high rank, nor was she of a low rank. The emper
what is the relationship between a planet's distance from the Sun and the length of its year, explain.
Iodine-131 has a half-life of 8 days. If you have 8 g of I-131 and 16 days pass, how much I-131 do you have left?
40. What kind of gas did they use at Auschwitz?​