0
Why we put {0} next to Hello in WriteLine method? Can anyone explain?
2 Respuestas
+ 7
Can you please specify your question ?
Usually in C# (not only but I se that you're talking about C#) we use {0} or {1} etc to insert values in the WriteLine command. For exemple:
Console.WriteLine("x={0}",3);
Will output x=3
+ 1
Thank you, I understood on my own after I'd posted my question.