You are on page 1of 1

Character

constant By Hareesh KS

BSc computer science

What is constants?

Constants in c are applicable to values which do not applicable to values which do change during the
execution of the program

 Single character constant – it can be represented in single digit or single special symbol
enclosed within a pair of single quotes
Eg ; ‘a’ ‘_’ ‘ 8’

 String constant-sequence of character. Enclosed within double quotes


Eg;” hello” “India” “a”.

You might also like