In C programming, variables which are to be used later in different parts of the functions have to be declared. Variable declaration tells the compiler two things:
- The name of the variable
- The type of data the variable will hold
There are two ways of declaring variable in C programming.
- Primary Type Declaration
- User Defined Type Declaration