Variable is a quantity, which my vary during program execution. Basically variable are name given to the location in the memory of computer, where different constants are stored. If a program works on some variables then we need to declare these variables with the help of data types