Variable in C Language – tccicomputercoaching.com
- February 26, 2020
- Posted by: Riddhi Dhandha
- Category: Variable in c
What is variable?
Variable is a memory location where we can store the data.
Why need variable?
In programming we can’t use data directly. We have to store the data first(on which we are going to process) in memory . This memory is allocated as per Data Type.
Features of Variable:
The variable can store single data at a time.
We can Update the data stored in variable.
Rules for Variable Name:
First letter should be start with alphabet.
No any symbol like * , dash, Hash, space should be used except underscore.
i.e roll-no , employee name , jan#sal etc.. invalid name.
valid name of variable:
rollno, a, emp1, salary etc.
Syntax of Variable:
Data Type Variable name;
i.e int a;
Call us @ 9825618292
Visit us @ http://tccicomputercoaching.com/