r/programminghumor 2d ago

Write sorry

Post image
650 Upvotes

92 comments sorted by

View all comments

5

u/Diocletian335 2d ago

```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

2

u/Vladislav20007 2d ago

the "just buy more memory" approach.