PRASANTH
Tuesday, September 11, 2012
Swap string without temp variable
string a1 = "Prasanth";
string a2 = "Sethupathy";
int aa = a1.Length;
a1 = a2 = a1 + a2;
a2 = a2.Substring(0, aa);
a1 = a1.Substring(aa);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment