Definition of variable in C programming language:

A variable is named location of data. In other word we can variable is container of data. In real world you have used various type containers for specific purpose. For example you have used suitcase to store clothes, match box to store match sticks etc. In the same way variables of different data type is used to store different types of data. For example integer variables are used to store integers char variables is used to store characters etc. On the basis of how many data a variable will store, we can categorize the all c variable in three groups.
(a)Variables which can store only one data at time. Example: integer variables, char variables, pointer variables etc.
(b)Variables which can store more than one data of similar type at a time. Example: array variables
(c) Variables, which can store more than one value of dissimilar type at a time. Example: structure or union variables.

Properties of variable in c:
Every variable in c have three most fundamental attributes. They are:
1. Name
2. Value
3. Address

Name of a variable:
Every variable in c has its own name. A variable without any name is name is not possible in c. Most important properties of variables name are its unique names. Not two variables in c can have same name with same visibility.

What is array and why array in c? 

What is a key word and what are the restrictions of using them? 

C is a procedural programming language?

Post a Comment