When you pass value-type variable into method as an parameter, method changes the variable; however when the method returns, the variable is not changed. Why ?

 Posted by Rajkatie on 12/22/2012 | Category: .NET Framework Interview questions | Views: 21328 | Points: 40
Select from following answers:
  1. Method handled the variable as referenc data type
  2. Variable is not initialized before it is passed.
  3. Whenver you pass a value type into method, it always create copy of the data.
  4. All Above

Show Correct Answer

Source: Microsoft self paced training | | Alert Moderator 

Comments or Responses

Login to post response