I have small doubt. Please see the below code:-
int x = new int();
x = 10;
int y = 10;
Console.WriteLine(x);
Console.WriteLine(y);
Console.ReadLine();
OutPut:
10
10
Now my question is what is main different between assign the values to int y = 10 and x = 10. Here x is you int object.
Can any tell me?