Define character and string literal with example?
Answers
Answered by
2
A character literal is a type of literal in programming for the representation of a single character's value within the source code of a computer program. ... For example, 'a' indicates the single character a while "a" indicates the string a of length 1.
Answered by
1
Explanation:
A character literal is a type of literal in programming for the representation of a single character's value within the source code of a computer program. ... For example, 'a' indicates the single character a while "a" indicates the string a of length 1.
Similar questions