0
What output this example ?
This example fell into the task, tell me what is the catch ? *** string s = "str"; string a = s; s = "rts"; Console.Write(a); // Answer - str . Why ?
2 ответов
+ 4
Because you assigned the value of s to a. And you are printing a not s.
0
Thanks