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 is the mass in grams of 1.5*10^-3 mol of sodium
Based on the results of testing colorless solutions with indicators, which solution is most acidic? (1) a solution in which bromthymol blue is blue (2) a soluti
Which word correctly completes the sentence? I'm looking for a store that sells _________ leather belts. A. mens' B. mens's C. men's
Which temperature is equal to 120. K? (1) -153°C (3) +293°C (2) -120.°C (4) +393°C
how many time does 4 go into 52
at a local fitness center, members pay a $12 membership fee and $5 for each aerobic class. Nonmembers pay $6 for each aerobic class. for what number of aerobics
What unintended result did Mao’s Cultural Revolution have on China?
The temperature of a sample of water changes from 10°C to 20°C when the sample absorbs 418 joules of heat. What is the mass of the sample? (1) 1 g (3) 100 g (2)
PLEASE HELP ME. Arrange the events in chapters 1–12 of Jane Austen's Pride and Prejudice in order from earliest to latest. 1.)Mr. Darcy snubs Elizabeth at the b
what's the answer for 4+5i and 3+i