0

Can anyone please explain to me what a literal is exactly

I have done multiple searches about it and still they have not been satisfactory to me. Explanations of any kind and length are welcomed and examples too if any. THANK YOU IN ADVANCE

17th Sep 2021, 12:21 PM
Philippe Ezekiel
Philippe Ezekiel - avatar
2 Respuestas
0
Literal is simply a representation of boolean, integer, character, float, double or string data. Example:- int number = 0; Here 0 is the literal representing a integer value.
17th Sep 2021, 12:36 PM
Niththish
Niththish - avatar