Is the var available in C++?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is the var available in C++??

8th Apr 2016, 1:07 PM
Hadi Hatami
Hadi Hatami - avatar
7 Answers
+ 2
Yes there is a keyword like var and the compiler replace it by the real type in c++ and it is "auto" keyword for example you can do this: auto x = 5; // c++
26th Jun 2016, 7:43 AM
Ahmed AZ
Ahmed AZ - avatar
+ 3
There is no keyword called vat in c or c++
1st Jul 2016, 8:33 AM
Midhun Mathew
+ 2
you can use type casting
8th Jul 2016, 2:38 PM
kushal pawar
kushal pawar - avatar
+ 1
in c++ there is no `var`, but in c++ you can do anything
9th Apr 2016, 5:30 PM
ARS
ARS - avatar
+ 1
Not needed, there are lots of conversion method in c++ if you really want to convert a variable
11th Apr 2016, 10:25 PM
Özgür
Özgür - avatar
+ 1
There is no keyword called vat in c or c++
1st Jul 2016, 8:34 AM
Midhun Mathew
0
this is a C# app... please write a quetion at least related to C#
9th Nov 2016, 5:29 AM
julio