Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Actually this could be different to only "return result; " if the == operator was overloaded
-
If (!(result != (!!!result && !!!!result)))
return (!result || !!result) == result
else
return (!result || !!result) == result
There, I fixed it -
@mid-grey you think that's bad?
bool f(bool b) {
b = b == (b == !b) ? b && !b : b || !b;
return b && !f(!b);
}
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
elgringo41Student - Teacher renaming .c to .exe make the program executable ? Teacher - Yes A group of people stand up...
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
When the code is done, but you really want to improve it.
undefined
c++
c
smart
efficiency