Skip to content

Instantly share code, notes, and snippets.

@coproduto
Created May 12, 2024 18:02
Show Gist options
  • Select an option

  • Save coproduto/36da0f682e5df1b31be1dd101f39d4e4 to your computer and use it in GitHub Desktop.

Select an option

Save coproduto/36da0f682e5df1b31be1dd101f39d4e4 to your computer and use it in GitHub Desktop.

Revisions

  1. coproduto created this gist May 12, 2024.
    11 changes: 11 additions & 0 deletions blah.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    int do_something(int arg) {
    if (arg > 0) {
    printf("%d", arg);
    do_something(arg - 1);
    } else {
    /*** if arg <= 0 ***/
    return 0;
    }
    /*** END if arg > 0 ***/
    }
    /*** END do_something ***/