What are variables and constants ?
Variable in C :
variable in C programming refers to a value whose value is
always changing during the execution of a program . Variable is
simply a value and that value changes according to condition.
Example:
A name can be used to declare the variable.
Note:
It Shouldn’t contain any number and special character.
Constants:
Constants in C are the values which remains same even after the
execution of the program. The value doesn’t changes after the
execution.
Example:
All numbers including string constants.
Declaring Variables And Constants:
Declaring a variable:
Data
type integer name;
Example:
int
a;
float
b;
Declaring a constant:
Data
type variable name=”Constant”;
In
declaring a constant we must provide a variable to store the constant
value.
Example:
int
a=10;
float
a=10.10;
In
this post you should have learnt 2 things:
*Variables
and constants
*how
to declare them(only examles)
If you didnt understand any thing !!! 😕
Don't worry simply comment 😊
Keep visiting.