हिंदी

What is a literal? - Computer Applications

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, 

  1. Integer literals: 12, 4, 342, etc.
  2. Real literals: 1.02, 345.657, 0.00002, l.0e-05, etc.
  3. Character literals: 'A', 'p', ':','?', etc.
  4. String literals: "COMPUTERS", "PAY2013", "3421", etc.
  5. Boolean literals: true or false.
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.03: Values and Data Types - Review Insight [पृष्ठ ३१]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.03 Values and Data Types
Review Insight | Q 11. | पृष्ठ ३१
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×