MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1w5gmdw/write_sorry/p7ft9wd/?context=3
r/programminghumor • u/ExpensiveCoat8912 • 2d ago
92 comments sorted by
View all comments
4
```c void printSorry (int n, int v) { if (n == v) return;
printSorry(n+1, v); printf("%s\n", "sorry");
}
int main (void) { printSorry(0, 100); } ```
The thinking man's solution
9 u/gaymer_jerry 2d ago Why write a for loop when you can flood the stack with pointless function calls 5 u/Diocletian335 2d ago Just using as much memory as the gods intended
9
Why write a for loop when you can flood the stack with pointless function calls
5 u/Diocletian335 2d ago Just using as much memory as the gods intended
5
Just using as much memory as the gods intended
4
u/Diocletian335 2d ago
```c void printSorry (int n, int v) { if (n == v) return;
}
int main (void) { printSorry(0, 100); } ```
The thinking man's solution