Variables in C Programming Language
Here in this post Variables in C Programming Language, we will learn about variables. Variables are the quantities which vary, in programming languages, variables are the entities which hold values in a program. In a program you can assign values to variables through assignments or through input statement of the language. Variables reserves space in memory.
Example : If you are writing a program for salary calculation, you have to declare a variable for storing the value of salary.
You can store value of salary into variable sal in both the ways( i.e. through assignment or using scanf statement of C language.
Through Assignment Statement :
Sal=50000;
Through scanf statement :
scanf("%d", &sal);