Question: What is the main difference between a value type and a reference type?
- A value type can be any primitive type, while reference types must be type-agnostic.
- A value type refers to another value, while a reference type refers to a value in memory.
- A value type stores an actual value, while a reference type is a pointer to a value.
- A value type is available only at runtime, while a reference type is available only at compile time.
Answer: The correct answer of the above question is Option C:A value type stores an actual value, while a reference type is a pointer to a value.