C# Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 239 Page Views: 

What is var keyword?



Posted By: Avi Date: 14 October 2010 05:22:31 AM
 Answer:

Var means that variable is implicitly typed, it’s strongly typed but the compiler determines the type of the variable.


Posted By: avibtech


Date: 14 October 2010 05:22:31 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image Mudhht
Related Questions
C# : How do you use StreamWriter to write text to file?

How do you use StreamWriter to write text to file?

StreamWriter sw = new StreamWriter(filename); sw.WriteLine(“text”);sw.Close();
Category: C# Date: 10/14/2010 11:50:46 AM
C# : How do you use StringBuilder class?

How do you use StringBuilder class?

StringBuilder sb = new StringBuilder(); sb.Append(123).Append(“aaa”); sb.ToString();
Category: C# Date: 10/14/2010 11:38:31 AM
C# : Will this code Compie?
Public Interface ISomething { public void Sub();}
C# : Can this methods have the same name void A(ref int a); void A(out int a);

Can this methods have the same name void A(ref int a); void A(out int a);

No, ref and out are not part of the method signature
Category: C# Date: 10/14/2010 10:48:14 AM
C# : How do you create 2 dimensional array?

How do you create 2 dimensional array?

string[,] array = new string[10,5];
Category: C# Date: 10/14/2010 10:25:31 AM