Question Bank (3 marks) · Q5
Q.Write the different constants used in C program.
Karnataka PUCTextbookShort· 3mImportance★★★★★est
18% · 27/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]
C constants are integer, real, character and string constants - fixed values that cannot change while the program runs.
A constant is a value that remains fixed throughout program execution. C provides the following kinds:
- Integer constant - a whole number without a decimal point, e.g. 25, -100, 0.
- Real (floating-point) constant - a number with a decimal point or exponent, e.g. 3.14, 1.5e3.
- Character constant - a single character enclosed in single quotes, e.g. 'A', '5', '+'.
- String constant - a sequence of characters enclosed in double quotes, e.g. "PUC". …
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.