For implicit type conversion, arrange the following from a lower size type to…

2026

For implicit type conversion, arrange the following from a lower size type to a high type size.

A. double

B. unsigned long int

C. unsigned int

D. long double

E. long int

Choose the correct answer from the options given below:

  1. A.

    E, C, B, A, D

  2. B.

    C, B, E, D, A

  3. C.

    E, C, A, B, D

  4. D.

    C, B, E, A, D.

Attempted by 832 students.

Show answer & explanation

Correct answer: D

To solve this, we must arrange the data types based on their memory size in ascending order (from smallest to largest).

Step 1: Analyze Type Sizes

Assuming a standard 32-bit system architecture:

  • unsigned int: 4 bytes

  • unsigned long int: 4 bytes (on 32-bit) or 8 bytes (on 64-bit). However, in standard implicit conversion hierarchies, unsigned int is often treated as the base before long types.

  • long int: 4 bytes (on 32-bit) or 8 bytes (on 64-bit). Typically, long int is equal to or larger than unsigned int.

  • double: 8 bytes

  • long double: 12 bytes or 16 bytes (largest among these).

Step 2: Determine the Correct Order

The standard hierarchy for implicit conversion (promoting smaller types to larger types) generally follows this size progression:

  • 1. unsigned int (Smallest integer type listed)

  • 2. unsigned long int (Larger or equal to unsigned int)

  • 3. long int (Integer type, often same size as unsigned long int but conceptually follows in hierarchy)

  • 4. double (Floating point, 8 bytes)

  • 5. long double (Largest floating point type)

Therefore, the correct arrangement from lower size to high type size is: unsigned int (C) → unsigned long int (B) → long int (E) → double (A) → long double (D).

This corresponds to the sequence: C, B, E, A, D.

Explore the full course: Mppsc Assistant Professor