Computer Science, asked by gopaloraon73, 1 month ago

What is literals, give any 2 example.​

Answers

Answered by TaniyaArmy
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