Sail E0 Webinar
Question
Type of Conversion in which compiler is unable to convert the datatype implicitly is ?
Options:
A .  ushort to long
B .  int to uint
C .  ushort to long
D .  byte to decimal
Answer: Option B


'int' is 32 bit signed integer whereas 'uint' is 32 bit unsigned integer .Range of int is larger than uint.So,compiler cannot implicitly convert from larger datatype to smaller datatype.



Was this answer helpful ?

Submit Solution

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

Latest Videos

Latest Test Papers