Kind of Constants.

Q12. What kind of constants are the following? 14, 011, 0X2A, 17, 014, 0XBC1.

Ans.

14                    Decimal Integer Constant

011                  Octal Integer Constant

0X2A             Hexadecimal Integer Constant

17                    Decimal Integer Constant

014                  Octal Integer Constant

0XBC1            Hexadecimal Integer Constant

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: