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

Extra _____ should never be allowed when operating a forklift or skid-steer loader
You have a square garden with side lengths of 8 meters. How many square meters is the garden?
what are some reasons that a volcano is dangerous
Lee and Fred are elementary school teachers. Fred works for a charter school in Pacific Palisades, California, where class size reduction is a goal for 2013. Le
20 POINTS Use the problem below to answer the question: 34 grams of carbon react with an unlimited amount of H2O. The reaction is: C + H2O → CO + H2 What is
Simplify 1/4 y + 1 1/2 + 2 -1 3/4y -12
Ken collected 28 bugs over 4 weeks. After 5 weeks, how many bugs will he have caught
graph the relation. Is the relation a function? If so why or why not? (-1,9) (0,-1) (-1,4) (4,9)
marijuana most abundant psychoactive chemical is delta-9- tetrahydrocannabinol or
A desk is on sale for $279, which is 38% less than the regular price. What is the regular price?