0

I didn't understand output

I can't solve like this questions; what is the output of this code? Can anyone explain it with examples?

21st Aug 2016, 5:26 PM
Zülâl
Zülâl - avatar
6 odpowiedzi
+ 2
so, they said they want to 'format' the string. they wrote something like (sorry, couldnt copy their text) int x= 10; int y = 20; Console.Write("x ={0} and y={1} world",x,y); output will be x = 10 and y=20 world this code will work...it illustrates the same point, which is: this is a clean way to just substitute variables in a string...which can be a sentence to the reader where you need to inform them about "10 unread messages and 20 missed calls" the {0} means "get the first variable after our formatted string ends.in the coding world, counting often starts from zero. and {1} means, display the SECOND variable after the formatted string. its all for display's sake
2nd Oct 2016, 10:14 AM
Hiroshige
+ 1
😁😁
26th Aug 2016, 8:27 AM
Muhammed Fazlan
Muhammed Fazlan - avatar
0
Ahh, I think I'm Blind 😵😵😵 I can't see the code
21st Aug 2016, 6:54 PM
Erwin Mesias
Erwin Mesias - avatar
0
I handle it Erwin, but thx 😄
21st Aug 2016, 6:58 PM
Zülâl
Zülâl - avatar
0
Just kidding 😁 If you can show me the code or the question, may be I can help you 😊
21st Aug 2016, 7:01 PM
Erwin Mesias
Erwin Mesias - avatar
0
hfzhzjsutzuydutsgstusnzgxghuuu
30th Sep 2017, 5:23 PM
Muhammed Fazlan
Muhammed Fazlan - avatar