its literally the same thing as declaring an int |
double
.Is there an actual purpose of it that makes it better than declaring a regular variable? |
const
variable:const double lol = 35.4;
constexpr
:constexpr auto lol {35.4};
#define
can be used to make macros, but that is not generally recommended either.return 0;
returns a 0 to the OS, to signal the program ended well. This is handy for scripts where the running of a command is dependent on the successful completion of a previous command.