Sail E0 Webinar
Question

0946, 786427373824, 'x' and 0X2f are _____, _____, ____ and _____ literals respectively


Options:
A .  decimal, character,octal, hexadecimal
B .  octal, hexadecimal, character, decimal
C .  hexadecimal, octal, decimal, character
D .  octal, decimal, character, hexadecimal
Answer: Option D

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 ".



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers