Satheesh Kumar Pilli
What is Implicit typed variable (var) in c#?
By Satheesh Kumar Pilli in .NET on Aug 20 2014
  • Mahesh Kumar Alanka
    Sep, 2014 18

    initialize variable at compile time eg: var x = 100;

    • 0
  • Satheesh Kumar Pilli
    Aug, 2014 20

    Implicit typed variable type (var), this feature has been added from c# 3.0 which allows to declare a variable using "var" keyword. The type of the variable is identified at the time of its compilation depending upon the value assigned to it.Eg-var a=99; // a is int type (at compile time) var s="Hi"; // s is string type(at compile time) var f=1.23 ; // f is float type(at compile time)

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS