+ 2

How parenthesis work in displaying value of an variable written under Console.Writeline statement??

Eg. int x=4,y=6; double z=9; Console.Writeline("x={2}"); Then what will be the output???n pls explain how??

8th Sep 2018, 7:49 AM
[ ]
[     ] - avatar
2 Respostas
+ 1
Be award {2} is a placeholder not a value. PlaceHolders should start a "0". Console.WriteLine("x= {0}", x) should be the Line. https://code.sololearn.com/c9Sy3XspIEZB/?ref=app
8th Sep 2018, 9:50 AM
sneeze
sneeze - avatar
0
Thanks
9th Sep 2018, 3:05 AM
[ ]
[     ] - avatar