Variables in C

Variables in C

A variable is a name given to a storage area that programs can manipulate. Each variable in C has a specific type which determines the size.

The name of the variable can be composed of letters, digits, and the underscore character. It must begin with a character or underscore.

Variable definition :

The variable definition tells the compiler where and how much storage create for the variable.

        
        data_type variable_name;
    

Example :

        
        int number;
    
        char name;
            
        float salary;
        
        char first_name;
        
    

Post a Comment

0 Comments