Skip to main content

Posts

Showing posts with the label types of variables in c.

INTRODUCTION TO VARIABLES IN 'C' LANGUAGE..

     INTRODUCTION TO VARIABLES IN 'C'.   VARIABLES:            While learning C programming you might have encountered the word variables. What are variables? Variables are names given to every defined value of a program. These names are given locations capable of storing temporary data within a program. This data is stored in the internal memory (RAM) of the computer. This data can be modified, stored or displayed whenever needed. The size of a variable depends upon the type of the data and the range of the datatype. The size of a variable varies according to the datatype.           For example, on a personal computer the size of an integer variable is 2 bytes, 4 bytes for float variable, 1 byte for character variable and for double variable is 8 bytes. Let me make this more simple. let`s take an integer variable i.e. int a,b,c; here integer has 3 variables a,b and c. As we saw above for a single integer va...