Question: what is the difference between var and int in c#?
Answer: Var is used to declare Implicitly typed variable where the compiler identifies the type automatically. var can hold any type of data. String is an explicit declaration for holding string data only. ... 'var' is used for declaring implicit types be it an int , string , double , an object etc etc.