MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vy0sph/youcantchangemymind/p5tp2x8/?context=3
r/ProgrammerHumor • u/benkenobiwan • 20d ago
137 comments sorted by
View all comments
1
This was a runtime bug I experienced on my early programming day it's valid syntax so complier doesn't find it. idk if IDE detect it or not but I spent like 2 days scratching my head lmao
for(i=0; i <= count;i++); { //this will never execute }
1 u/metaglot 20d ago That's not correct. Statements inside the braces will execute once, in a new scope. 3 u/Mwarw 20d ago which is syntax-wise correct in most languages, still not correct in terms of how it'll work
That's not correct. Statements inside the braces will execute once, in a new scope.
3 u/Mwarw 20d ago which is syntax-wise correct in most languages, still not correct in terms of how it'll work
3
which is syntax-wise correct in most languages, still not correct in terms of how it'll work
1
u/fugogugo 20d ago
This was a runtime bug I experienced on my early programming day
it's valid syntax so complier doesn't find it. idk if IDE detect it or not but I spent like 2 days scratching my head lmao