โ Back to Variables
Question 36
Use var for Type Inference
Use var for Type Inference
Thevarkeyword lets C# infer the type from the value. Usevarto declare a variable holding 42 and print it: 42
Expected Output:
42
Topics:
Variables
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.