Skip to content

Instantly share code, notes, and snippets.

@coproduto
Created May 12, 2024 18:02
Show Gist options
  • Save coproduto/36da0f682e5df1b31be1dd101f39d4e4 to your computer and use it in GitHub Desktop.
Save coproduto/36da0f682e5df1b31be1dd101f39d4e4 to your computer and use it in GitHub Desktop.
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 ***/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment