Variable in C Language - tccicomputercoaching.com

Page 1

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;


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.