1.

Differentiate between numeric and string constants

Answer»

constants -these numbers can be integers or real constants. they are used for MATHEMATICAL calculations. integers are whole numbers and can be positive or negative for example 10,-20 ETC. Real consonants are the numbers with FRACTIONAL part for example 2.5 string constants - these are also known as CHARACTER constants. these can also contain numbers. no mathematical calculations can be performed on character constants. these are written in double QUOTES. for example "WELCOME "



Discussion

No Comment Found