Is “var i = (i = “test”);” possible ?

 Posted by Bhakti on 12/23/2009 | Category: ASP.NET Interview questions | Views: 4525
Answer:

No. It is not possible. Variabled declared with “Var” can not be used in its initialization statement as you can do with explicit data. (int i=(i=”test”);


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response