How x = {0} turned into x = 10 ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How x = {0} turned into x = 10 ?

I am just new to this and can't get this point clearly. Someone help

17th Aug 2019, 1:46 PM
Soulless Awais
Soulless Awais - avatar
2 Antworten
0
you did not explain in your question the other variables which is object; by the way in first x about to get the first value of object. and the second x is the result of the number of value the object chose to get..
17th Aug 2019, 3:00 PM
Saif
Saif - avatar
0
What if I write int x = 10; And then Console.WriteLine(x = {0}); Then the result is x = 10 How ?
17th Aug 2019, 3:11 PM
Soulless Awais
Soulless Awais - avatar