C# Programming - Strings - Discussion
Discussion Forum : Strings - General Questions (Q.No. 3)
3.
Which of the following statements will correctly copy the contents of one string into another ?
Discussion:
14 comments Page 2 of 2.
Neeraj said:
1 decade ago
Mark is right. Because in s2=s1 giving the reference of s1 to s2.
Mahi said:
1 decade ago
Can't find the difference.
Can anyone tell clearly.
Can anyone tell clearly.
Dheer said:
1 decade ago
String s2, s1 = "string";
s2 = s1;
s2.equals(s1);
s2 = s1;
s2.equals(s1);
Amit Gupta said:
1 decade ago
Why not first is right?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers