Question Bank (2 marks) · Q19
Q.What is a string constant? Give an example.
Karnataka PUCTextbookShort· 2mImportance★★★★★est
61% · 94/154 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →[!TLDR]
A string constant is characters in double quotes, e.g. "India", ending in '\0'.
A string constant (string literal) is a sequence of zero or more characters enclosed in double quotation marks, such as "India" or "C Language". It is stored as a character array, and the compiler automatically places a null character '\0' at the end to indic …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.