What is the 'var' keyword in C#?

  1. Implicit type declaration
  2. Variable declaration
  3. Virtual method
  4. Variant type

Explanation

The 'var' keyword enables implicit typing, where the compiler determines the type based on the assigned value.