Let’s have a glance at the variables in C programming language with its syntax.
What are the variables in C?
Variables in C programming language is a storage place which has some memory allocated to it and is used to store some form of data. Each variable requires different amounts of memory depending upon the data types its holding.
What are the rules of variables in the C programming language?
Variables in C Programming language consist of alphabets (both upper and lower case), numbers and the underscore ‘_’ character.
A variable cannot start with a number
Syntax of Variable Declaration in C:
1. Syntax for Single Variable in C programming language:
2. Syntax for multiple Variable in C programming language:
type variable1_name, variable2_name, variable3_name;