What is variable?
-Variable is data name that use to store data value.
Rules for variables:
-Variable name may consist of letter, digits and underscore(_) no other symbols are allow.
-name must start with a letter only.
-Name in variable is case sensitive Total and total both are different
-Name should not be Keyword.
--White space not allow in name.
valid example
total
avg_height
Invalid example:
avg height
1number
Data Types in C language:
C provide Following data type:
-Integer Data types: Use to store number values.
Short int
int
long int
-Floating Point Data type: used to store point value like 2.3 etc
Float
double
long double
-Character Data type: use to store single letter
char
C language tutorial, c programming , c variable , c datatypes, c lang variable , c lang datatype