Wednesday 26 February 2020

Variable in C Language - tccicomputercoaching.com


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;

float b;

char x;

To learn more about C Programming Langauge at TCCI

Call us @ 9825618292

Visit us @ http://tccicomputercoaching.com/

No comments:

Post a Comment