What is var c#?



What is var c#?..

Answer / Rahul Saxena

The 'var' keyword in C# allows the compiler to infer and automatically determine the type of a variable based on its initial value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Does a class need a constructor c#?

1 Answers  


What are delegates and why are they required?

1 Answers  


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

1 Answers   Siebel,


How can we convert XML Data to DataBase Table in C#.Net?

2 Answers   Wipro,


What is a method signature in c#?

1 Answers  


Why do we use reflection in c#?

1 Answers  


Do we get an error while executing the “finally” block in c#?

1 Answers  


Is std :: string null terminated?

1 Answers  


Can you store multiple data types in System.Array?

20 Answers   Satyam, Siebel Systems,


What is the difference between select and selectmany?

1 Answers  


What is private constructor c#?

1 Answers  


What are the extension methods in c#?

1 Answers  


Categories