Multiple choice technology programming languages

Boxing in .Net allows the user to convert?

  1. a interger type to double

  2. a reference type to a value type

  3. a value type to a reference type

  4. a double type to interger

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Boxing is the process of converting a value type (like an int or a struct) to a reference type (like object), allocating the value on the garbage-collected heap. Unboxing is the reverse. Other options describe numeric type casting, making the stored choice correct.