Home / CSE MCQs / C#.Net MCQs :: Discussion

Discussion :: C#.Net MCQs

  1. Type of Conversion in which compiler is unable to convert the datatype implicitly is ?
  2. A.
    ushort to long
    B.
    int to uint
    C.
    ushort to long
    D.
    byte to decimal

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment