0

what is the mean of into{0} which is used in printing satament

it is usesd in Console. WriteLine()

1st Jul 2016, 5:15 PM
Chandraprakash Sharma
Chandraprakash Sharma - avatar
5 Réponses
+ 1
may be its allocated some memmory for store temp values
1st Jul 2016, 6:18 PM
Safik Rahman
Safik Rahman - avatar
0
can you explain with the help of example please
1st Jul 2016, 6:20 PM
Chandraprakash Sharma
Chandraprakash Sharma - avatar
0
For example: Console.WriteLine("The result is {0}", x); [the result is stored in x]
1st Jul 2016, 7:28 PM
Klaus
0
Its just for format Console.WriteLine("First name : {0} , Last name : {1} ",john,cena); output: First name : john , Last name : cena
1st Jul 2016, 7:48 PM
Hassan Alzubair
0
Console.WriteLine("I really like {0}, She's the best!, girlfriend); // This is the same as the following. Console.WriteLine("I really like " + girlfriend + ", She's the best!");
1st Jul 2016, 9:13 PM
Andreas BeEm Kvist
Andreas BeEm Kvist - avatar