this post was submitted on 29 Aug 2023
14 points (85.0% liked)

Programmer Humor

31995 readers
317 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (4 children)

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

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

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

load more comments (2 replies)