Variables

Rules for constructing variables names In C Programming Language

There are some specific rules for constructing variable names in C language: (a) Variable name may be a combination of alphabet digits or underscores and its lengths should not exceed 8 characters, some compilers allow 40 characters also. (b) The first character must be an alphabet. (c) No comma, blank spaces are allowed in variable …

Rules for constructing variables names In C Programming Language Read More »

What is Variable declaration In C programming Language?

All the variables must be declared before their use. It does two things: (a) Tell the compiler what the variable name is. (b) Specify what type of data that a variable will hold. Syntax of variable declaration: data_type variable_name; Example of variable declaration: int i,j,k; char ch;  

Scroll to Top