66
For? (i.imgur.com)
top 13 comments
sorted by: hot top controversial new old
[-] Written2323@lemmy.ml 43 points 1 year ago

Undefined property : lenght

[-] flashgnash@lemm.ee 4 points 1 year ago

Syntax error: expected >

[-] writeblankspace@lemm.ee 2 points 11 months ago

Yeah ๐Ÿ’€ the for loop won't run then

[-] TDCN@feddit.dk 22 points 1 year ago

Syntax error: ? is not a valid operator

[-] pizzaiolo@slrpnk.net 19 points 1 year ago
[-] Tolookah@discuss.tchncs.de 41 points 1 year ago
[-] fred@lemmy.ml 13 points 1 year ago

Speak for yourself

[-] Vigge93@lemmy.world 4 points 1 year ago

for(int i = 1; i > 0; i++)

[-] lemmy_see@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

-8 bytes

for (int i=1;;i++)

[-] Vigge93@lemmy.world 1 points 1 year ago

Not quite the same, there's a subtle but significant difference

[-] lemmy_see@lemmy.world 1 points 1 year ago
[-] Vigge93@lemmy.world 2 points 1 year ago

What happens on the next iteration when i = 2,147,483,647 for each of our loops?

[-] fubo@lemmy.world 1 points 1 year ago
this post was submitted on 29 Aug 2023
66 points (72.3% liked)

Programmer Humor

32078 readers
644 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS