2 ms·
It likes if ( (x = y) && p ) return -1; (No, I don't have the exact statement in question handy. It was more complicated than this example.)
by ctdonath 15y ago
It likes if ( (x = y) && p ) return -1;
(No, I don't have the exact statement in question handy. It was more complicated than this example.)
- jeltz 15y agoYes, and that is because "(x == y) && p" should be written as"x == y && p" according to gcc. If you add the brackets gcc takes that as a sign that you really wanted to do an assignment.