Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
C#
/
C# fundamentals
What does var mean in var amount = 12.5m;?
from C# fundamentals
C# 14 / .NET 10
beginner
1 min
What does var mean in var amount = 12.5m;?
The compiler infers decimal, and amount keeps that static type.
amount can later hold a value of any type.
The runtime chooses amount’s type on every assignment.
amount has the runtime type object.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the array sum
Spot the bug
A new version is available
Reload