This watermark does not appear in the registered version - http://www.clicktoconvert.com
4
SR-IT Institute @ Beeramguda.
1.5
CONSTANTS
Constants in C refer to fixed values that do not change during the execution of a
program.
CONSTANTS
Integer
constants
Character Constants
Real
constants
Single character
constants
itu
Integer Constants
String
constants
te
Numeric Constants
An integer constant refers to a sequence of digits, There are three types integers,
namely, decimal, octal, and hexa decimal.
st
Decimal Constant
Eg:123,-321 etc.,
Eg: 1) 15 750
In
Note: Embedded spaces, commas and non-digit characters are not permitted
between digits.
2)$1000
-IT
Octal Constant
SR
An octal integer constant consists of any combination of digits from the set 0 through
7, with a leading 0.
Eg: 1) 037
2) 0435
Hexadecimal Constant
A sequence of digits preceded by 0x or 0X is considered as hexadecimal integer.
They may also include alphabets A through F or a through f.
Eg: 1) 0X2
2) 0x9F
3) 0Xbcd
Ph: 8801948390, 7396252455.
Leave your Comments