Home » C++ Programming » Data Types » Question
  1. 0545, 451245123245, ‘p’ and 0X3f are _____ _____ ____ and _____ literals respectively.
    1. hexadecimal, octal, decimal, character
    2. octal, decimal, character, hexadecimal
    3. octal, hexadecimal, character, decimal
    4. decimal, character,octal, hexadecimal
    5. None of these
Correct Option: B

Literal integer constants that begin with 0x or 0X are interpreted as hexadecimal and the ones that begin with 0 as octal. The character literal are written within ”.



Your comments will be displayed only after manual approval.