+ 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??
2 Answers
+ 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
0
Thanks