(ANSI) C Reference – C Constants

The constants that can be used in the C programing language.


F or f ->  float (suffix)


L or l ->  long (suffix)


0X or 0x ->  Hexadecimal (prefix zero-x)


0 ->  Octal (prefix zero)


e ->  Exponential form


(char, octal, hex) ‘a’, ‘\ooo’, ‘\xhh’ ->  Character constant


\n ->  Newline


\r ->  Carriage return


\t ->  Tab


\b ->  Backspace


\\, \?, \’, \” ->  Special characters


“my…string” ->  String constant


This entry was posted in C Constants. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site. Tweet This! Tweet This! or use to share this post with others.

Leave a Reply: