You pass a integer type variable into a method as an argument. The method do some complex calculation and change the variable's value. But when the method returns, the variable has not changed. What happened?

 Posted by Rajkatie on 8/30/2013 | Category: .NET Framework Interview questions | Views: 1713 | Points: 40
Select from following answers:
  1. A value type cannot be changed inside a method.
  2. The variable was not initialized before it was passed in.
  3. The method didn’t return the changes.
  4. All Above

Show Correct Answer

Source: exam ref book from microsoft ( | | Alert Moderator 

Comments or Responses

Login to post response