memecub
Ways of doing a for loop.: for(i=1;i<=n;i++)

Ways of doing a for loop.: for(i=1;i<=n;i++)

Two-panel meme: a man in a red puffer jacket first frowns and raises a hand to reject "for(i=1;i<=n;i++)", then tilts his head back and gestures approvingly at "for(i=0;i<n;i++)", showing a programmer's preference for zero-based loops.

Text in the image

“for(i=1;i<=n;i++)” “for(i=0;i<n;i++)”

Good for

  • when a colleague starts loops at 1
  • debating zero-based array indexing
  • mocking someone's coding style
Download
Collected from the web · rights belong to the original authorsWeb
License
Web collected
Source
programmerhumor.io
Details
858×765 · PNG

Writing something? Let AI place memes

Paste an article and memes land on the punchlines.

Claude CodeCodexCursorChatGPTClaudeGemini CLIOpenClawGitHub CopilotTraeWindsurfWorks with Claude Code, Codex, Cursor, ChatGPT and 19+ more AI tools→

Related