What is the 'var' keyword in C#?

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

Explanation

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