R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the `var` keyword represent in C#?

  • (A) Dynamic type
  • (B) Object type
  • (C) Implicitly typed local variable
  • (D) String only

Explanation by: Ram Sharma
`var` allows the compiler to infer the type based on the assigned value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.