You pass a value-type variable into a procedure as an argument. The procedure changes the variable; however, when the procedure returns, the variable has not changed. What happened? (Choose one.)

 Posted by Raja on 9/20/2008 | Category: C# Interview questions | Views: 36965
Select from following answers:
  1. The variable was not initialized before it was passed in.
  2. Passing a value type into a procedure creates a copy of the data.
  3. The variable was redeclared within the procedure level.
  4. The procedure handled the variable as a reference.
  5. All Above

Show Correct Answer

Source: MCTS Book | Asked In: MCTS | Alert Moderator 

Comments or Responses

Login to post response