C# adding string to string

Question posted in Computer Software on 06 2010
Rate question difficulty level 0 Votes
please review the following :
string str1 = "str1";
string str2 = str1;
str2 += "str2";

Response.Write(str1);

what will be printed on the web page?
 
 
4 Answers
 
"Str1"

06/23/2010
 
 
str1str2

09/15/2010
 
 
str1

09/19/2010
 
 
I've checked it and the result is : "str1str2"

08/13/2011
 
 
Add an answer*
 
Your name
Email
 
Company: TGS
Location: Israel
C# string

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
Mercer 
---------------------------
---------------------------
---------------------------