Declaration of variable
After deciding a suitable name for the variable, we have to declare them to the compiler. What does declaration do in c program? It tells the compiler what the variable name is. It specifies what types of data the variable will hold. There are two types of declaration of variables. Primary declaration User-defined declaration 1. Primary declaration: - In primary type declaration, A declaration statement begins with the type, end by the name of one or more variables. A declaration statement must end be with a semicolon. Syntax of declaration sentences. Syntax : data_type variable_1, variable_2, .....,variable_n; Declaration of multiple variables of the same data types can be done in one statement. For Example, int a; int b; int c; can be also written as ...