You are on page 1of 5

CHARACTER CONSTANT

by
Hareesh ks
Ist year
Bsc computer science
What is constants?

Constants in C are applicable to values which


do not change during the execution of the
program .
A.Single character constant

It can be represented in single digit or single


special symbol enclosed within a pair of single
quotes
Eg; ‘a’ ‘_’ ‘8’
B. String constant

Sequence of character. Enclosed within double


quotes
Eg; “hello” “India” “a”
Thank you

You might also like