Scout1850 Scout1850
  • 25-01-2024
  • Computers and Technology
contestada

Is the following function definition correct?
void returnsInteger(int a) {
int b = a + 10;
if (b > 20) {
return b;
}
else {
return a;
}
}
a) Yes
b) No
c) Missing return type
d) Incorrect use of return statement

Respuesta :

Otras preguntas

1/3 as many dimes as nickels 3 more quarters than nickels 17 coins in all Q=___ D=___ N=___
What was 1 of the dangers of living in a tenement?
Which phrase BEST describes a confederation? A.partners B.divided power C.a strong Federation D.a strong central government I SUCK AT SOCIAL STUD
Why did Osama bin Laden leave his home country of Saudi Arabia for Afghanistan?
a computer costs $849.75 and the hard drive is 61.3 of the total cost. What is a reasonable estimate for the cost of the hard drive?"
what  three mechanisms may drive tectonic plate movement?
what  three mechanisms may drive tectonic plate movement?
How did WWI change the lives of women
You go out to eat with your family, and you agree to leave the tip. What is a 15% tip on a $58.0 bill? I know the answer is $8.70 but why is that? Can someone e
1/3 as many dimes as nickels 3 more quarters than nickels 17 coins in all Q=___ D=___ N=___