r/ProgrammerHumor • • Mar 15 '22

static bool isCrazyMurderingRobot = false;

/img/2g1k34ok5kn81.jpg
4.9k Upvotes

257 comments sorted by

View all comments

Show parent comment

5

u/weregod Mar 16 '22

It's valid C code. But it has bug because of missing =. In C operator a = b return b so if (a = true) set true to a and enter if branch.

3

u/jesp1999 Mar 16 '22

Correct, you understand the joke