Variables are the container/store house for any data that is inputted. To acquire space for the data to provide, space should be given name. Variables are just symbolic representation of memory location. For example:
a, x, y, abc, ab1 etc
Rules for writing variables:
A reserved word in C programming is known as keyword. Keyword cannot be used as variable name.
These are the keyword of C programming
A constant is a value or variable that cannot be changed in the program. For example 10, 20, 'a', 'b' etc
a, x, y, abc, ab1 etc
Rules for writing variables:
- A variable can have alphabets, digits and underscore
- A variable name must start with alphabets or underscore but not with digit
- No whitespace is allowed within in variable name
- A variable name must not be reserved keyword
A reserved word in C programming is known as keyword. Keyword cannot be used as variable name.
These are the keyword of C programming
- auto
- break
- case
- continue
- register
- char
- const
- do
- double
- while
- default
- else
- if
- goto
- for
- long
- return
- short
- signed
- long
- register
- switch
- typedef
- union
- struct
- void
- volatile
- int
- float
- extern
- enum
- volatile
A constant is a value or variable that cannot be changed in the program. For example 10, 20, 'a', 'b' etc
If you have any doubt, let me know...