What are string literals? How can they be created?
Answer:
String literals represent a sequence of characters. They can be created by enclosing a sequence of characters in double or single quotes.
Examples:
- “abc”
- ‘Hello, good morning’
Get live Maths 1-on-1 Classs - Class 6 to 12