What will happen if we compile below C# code?

public const string status_deactive = null;

public void initialize_const_value()
{
status_deactive = "DD";
}

 Posted by vishalneeraj-24503 on 12/26/2013 | Category: C# Interview questions | Views: 4388 | Points: 40
Select from following answers:
  1. It will compile successfully.
  2. compile-time error.
  3. run-time error.
  4. None of these.
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response