+ 3

So what is var supposed to mean again?

16th Feb 2020, 7:32 PM
nikhil
7 Respuestas
16th Feb 2020, 7:48 PM
Mihai Apostol
Mihai Apostol - avatar
+ 2
You are already learning and in 2nd chapter given about variable then why again? But there is no var in C#. We define variable using some data types like int, double, float
16th Feb 2020, 7:34 PM
A͢J
A͢J - avatar
+ 2
It's used to allow the compiler rather than the developer to decide on the variable type based on the assigned value.
17th Feb 2020, 9:59 PM
Sonic
Sonic - avatar
+ 1
Jamie💐 var is a keyword which is use to define variable like in JavaScript. Now in the latest version of Java also but this keyword is not available in c# as I know.
17th Feb 2020, 12:38 AM
A͢J
A͢J - avatar
+ 1
Yeah var lkeyword is available in C#
17th Feb 2020, 1:41 AM
Stark
Stark - avatar