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
-
beleg31947yi always wanted to propose a suicide risk assessment method for developers from their code.
This one earns a high score. -
Polarina1217yThis is not even guaranteed to fail since optimizing compilers will just remove that block of code.
Integer division by zero is undefined behaviour. Compilers will assume undefined behaviour can never happen, thus they assume the pool can never overflow, thus convincing themselves that the conditional is dead code and remove it. -
"C++ is a highly flexible language which can allow for very efficient programmes"
... can .... CAN -
@Zennoe Oh, sorry, miss read your Question.
It's undefined behaviour, but I think most will halt execution.
But its undefined behaviour so who knows? -
codumke3397y@CompileNix May u want to talk while coding, because I am searching someone to talk about coding
This came from a friend of mine who found this in a code repo at work.
rant