C programming language, coahcing for c, computer class in ahmedabad, computer class in bopal-ahmedabad, TCCI computer coaching

Variable in C Language – tccicomputercoaching.com

What is variable?

Variable is a memory location where we can store the data.

Variable-in-C-Language_simple

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/

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s