Thursday 20 December 2018

Variables


Variables :
                                A variable is a data name that is used to store data value in memory location. Variables are quantities that vary during the program execution. Variables are used for identification for entering the information or data..It contains the name of a valid identifier. A variable can be chosen by a programmer  in a meaningful way.

Rules for defining variables :
·        A variable name may consists of letters, digits and _ (underscore).
·         It should not be a keyword.
·         White spaces are allowed.
·         Both lower case and upper case are significant.
                                Ex : Hello is different from HELLO and hello.

No comments:

Post a Comment