+ 1
How it works?
What is the output of this code? string x = "Sololearn"; Console.WriteLine(x.Split('o')[2]); (output:learn)
1 Answer
+ 3
Here the string x is splitted by "o".When splitting the parts become elements in an array. So x[0]="S", x[1]="l", x[2]= "learn".