Is var a data type?



Is var a data type?..

Answer / Deepak Kumar Swarooop

No, 'var' is not a data type in C#. Instead, it allows the compiler to infer the type of a variable from the initial value provided.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

2. What happened when BO object has been called?

1 Answers   Mphasis,


What is a generic method?

1 Answers  


What is windows forms in c#?

1 Answers  


How is the memory managed in C#.

1 Answers  


Why do I get a syntax error when trying to declare a variable called checked?

1 Answers  


what is inheritance and an example in vb.net and c# of when you might use it?

1 Answers  


Why can't we use a static class instead of singleton?

0 Answers  


Please explain value types and reference types used in c#?

1 Answers  


What exactly happens when we debug and build the program?

1 Answers  


Why are strings immutable c#?

1 Answers  


How do you create dlls in .NET

1 Answers   Digital GlobalSoft,


What?s the difference between <c> and <code> XML documentation tag?

1 Answers  


Categories