C#
Specify co ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Specify correct examples of using keyword var for automatic type inference:
var dontKnowType;
var evenNumbers = new int [] {2, 4, 6, 8};
var myNull = null;
var someCollection = {1, 2, 3};
var myINt = 1;
var myString = "Goodbye word";
Explanation
Look at the right side where you can clearly infer the type
type-inference
variable definition
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
C
#
Quiz
Login to learn C#
or
Read more about
C# Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment