Assume that you declare a variable as int x = 100, and correctly pass it to a method with the declaration private static void IncreaseValue(int x). There is a single statement within the IncreaseValue() method: x = x + 25;. Back in the Main() method, after the method call, what is the value of x?

Respuesta :

ijeggs

Answer:

The value of X after the method call is 125

Explanation:

Recall that x was assigned the value 100. this value (100) was passed as an argument to the method IncreaseValue() which adds 25 to x that was initially 100.