3.7k views
2 votes
What is the value returned by the following function?

int function( )
{
int value = 35;
return value + 5;
value += 10;
}

1 Answer

3 votes

Answer:

returned value is 40.

Step-by-step explanation:

value = 35, and the function returns value + 5

35 + 5 = 40

User Vivek C A
by
5.1k points