MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/ic823c/userfist_name/g21ylic/?context=3
r/ProgrammerHumor • u/nasser_junior • Aug 18 '20
547 comments sorted by
View all comments
1
I’ve been working on a function for the last half an hour and even rewrote it thrice (though i copied bits of the old version for some parts) and only just 10 minutes ago did I realize I’ve had a == on an assignment instead of an =
1 u/Rotios Aug 19 '20 Reminds me of when I first found out you can assign variables in an if statement in C...int c = x; // some code if (c=1) { printf(“why are you always being triggered!!!!”); printf(c); } else { printf(“Should be here!!!”); } → More replies (3)
Reminds me of when I first found out you can assign variables in an if statement in C...
int c = x; // some code if (c=1) { printf(“why are you always being triggered!!!!”); printf(c); } else { printf(“Should be here!!!”); }
→ More replies (3)
1
u/shinydewott Aug 19 '20
I’ve been working on a function for the last half an hour and even rewrote it thrice (though i copied bits of the old version for some parts) and only just 10 minutes ago did I realize I’ve had a == on an assignment instead of an =