sec_goat
Squire
After trying to tackle some scripts i realise I am sorely lacking in programming knowledge so I am trying to learn C-Sharp and Instead of Spamming this forum with a new thread every time I Have a question, I will just post here and keep this thread running.
Question 1: Use of the {0} parameter
Why choose one method over the other when they both seem to give me the same results:
Question 1: Use of the {0} parameter
Why choose one method over the other when they both seem to give me the same results:
Code:
x = 7;
y = 5;
result = x-y;
Console.WriteLine("x-y: {0}", result);
Code:
x = 7;
y = 5;
result = x-y;
Console.WriteLine("x-y: " + result);