Well now I just wanna see more for-loop one-liners!
this post was submitted on 12 Jun 2023
34 points (97.2% liked)
Programmer Humor
32361 readers
425 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
There's always the classic C strcpy :)
char *strcpy(char *dest, char *src) {
char *p = dest;
while (*p++ = *src++);
return dest;
}
Oof.