Computer Training Institute in Vizag JNNC Technologies Pvt.Ltd
Software Training Institute in Vizag JNNC Technologies Pvt.Ltd
In this tutorial, you will learn about variables and rules for naming a variable. You will also learn about different literals in C programming and how to create constants.
Variables
In programming, a variable is a container (storage area) to hold data.
To indicate the storage area, each variable should be given a unique name (identifier). Variable names are just the symbolic representation of a memory location. For example:
int playerScore = 95;
Here, playerScore is a variable of
int
type. Here, the variable is assigned an integer value 95
.
The value of a variable can be changed, hence the name variable.
char ch = 'a';
// some code
ch = 'l';
0 Comments
If you have any doubts,please let me know