Do I always need to put "int" when declaring a variable?

In c++ is it always needed to use int when declaring a variable? unlike python you just type any character and your good.
Yes if the variable has to have the type int. Also you can substitute type specifier int for type specifier signed or use the both in the declaration,

In C++ the compiler checks types of variables at compilation time.
Last edited on
However, there's a very interesting project lying around, which attempts to add
dynamic typing cababilities to C++ -> https://code.google.com/p/dynamic-cpp/
Topic archived. No new replies allowed.