0
What is the output of the code? string s=sololearn. Console.WriteLine("s[6]");
4 Respuestas
+ 3
Probably an error. 'sololearn' is not between quotes, so it's interpreted as a variable. If it's not defined, you'll get an error. If you meant 'string s="sololearn";', then @Azizbek is right: strings are indexed beginning with 0, so 's[6]' is actually the 7th character.
+ 2
a?
+ 1
Ans will be a
0
s="sololearn";
s[6]=a// 7th element