In C variable names must follow specific rules:
int
is not allowed but int_count
would work).The main data types in C are: int
, float
, double
, and char
.
Variables in C can be initialized with values at their declaration or have their values set later in the code.
In C a variable can be cast explicitly or implicitly from one data type to another. They can then be used directly or stored in another variable.