Advertisements
Advertisements
प्रश्न
What is a literal?
थोडक्यात उत्तर
उत्तर
Literal is a constant that remains fixed throughout the discussion of a program. It is the value that can be assigned to a variable. For example,
- Integer literals: 12, 4, 342, etc.
- Real literals: 1.02, 345.657, 0.00002, l.0e-05, etc.
- Character literals: 'A', 'p', ':','?', etc.
- String literals: "COMPUTERS", "PAY2013", "3421", etc.
- Boolean literals: true or false.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?