Beginner
C#
Q8 / 100
What does the var keyword do in C#?
Correct! Well done.
Incorrect.
The correct answer is C) Lets the compiler infer the type from the initializer
C
Correct Answer
Lets the compiler infer the type from the initializer
Explanation
var x = 42; infers x as int. var is compile-time inference — the type is fixed. It is not dynamic like dynamic.
Progress
8/100