Skip to content

Instantly share code, notes, and snippets.

@frmsaul
Last active January 12, 2016 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frmsaul/c0500df732df9625953d to your computer and use it in GitHub Desktop.
Save frmsaul/c0500df732df9625953d to your computer and use it in GitHub Desktop.
void printArr(int arr[], int len){
if(len == 0){
printf("\n");
return;
}
printf("%d,",arr[0]);
printArr(arr + 1, len - 1);
}
@frmsaul
Copy link
Author

frmsaul commented Jan 12, 2016

Let me know if this work or not,
Haven't tested it. :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment