Is there any difference between:
this->textBox1->Text = this->textBox1->Text + ("2");
and this:
this->textBox1->Text = this->textBox1->Text + "2";
or it is just a syntactic sugar?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That is the exactly same, so no difference as far as the result goes.
The compiler first will evaluate whats in the brackets, since it is just (“2”), it will result in “2”, therefore the same as your second code.