Variable declaration

Variable Declaration in C Programming

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.

  1. Primary Type Declaration
  2. User Defined Type Declaration

Leave a Reply

Your email address will not be published. Required fields are marked *