Multiple choice technology programming languages

Which of the following is NOT a value type?

  1. Struct

  2. Delegate

  3. string

  4. Enumeration

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

In C#, string is a reference type, not a value type. Value types include structs, enums, and primitive types (int, bool, etc.). Delegates are also reference types. When you assign a string variable, you're copying a reference, not the actual string data.