What is literals, give any 2 example.
Answers
Answered by
2
Explanation:
Literals are often used to initialize variables, for example, in the following, 1 is an integer literal and the three letter string in "cat" is a string literal: int a = 1; string s = "cat"; ... Some literals are specific keywords, like true for the boolean literal "true".
Similar questions
Computer Science,
22 days ago
Political Science,
22 days ago
Math,
22 days ago
Math,
1 month ago
English,
1 month ago
Math,
9 months ago
Biology,
9 months ago
Social Sciences,
9 months ago