I had accidentally tried this, which compiles! So I was wondering what could this possibly mean.. google didnt help..
if (3 >+ 4)
dothis() //this is never hit btw..
if (3 >- 4)
dothis() //this is hit.
Both the code compile btw..
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.
It parses as
and
So into the unary
+and unary-operators.If you want an interesting way to explore this, write
and then explore the resulting expression tree
funcin the debugger. You’ll see the unary operator in the tree.