A constant is a quantity that does not change with the execution of the program,but remains same throughout the whole program execution e.g 10,"INDIA", 19.75 etc.Constants may be numeric,characters or strings and are also known as literals.constant can be classified into different categories as shown below:
Integer Constant |
Floating Point Constant |
Character Constant |
String Constant |
Post a Comment