C Constants

Constant in C refers to fixed values that do not change during the life of a program.

Several type of Constants are in C.

Integer Constant

Real Constant

Character Constant

String Constant


Backslash character constants used in formating output.

Constant Meaning
‘a’ Audible Alert (Bell)
‘b’ Back Space
‘f’ Form Feed
‘n’ New Line
‘r’ Carriage Return
‘t’ Horizontal Tab
‘v’ Vertical Tab
''’ Single Quote
‘”‘ Double Quote
‘?’ Question Mark
‘\’ Backslash
‘′ Null