[ create a new paste ] login | about

Link: http://codepad.org/ODdLzVco    [ raw code | output | fork ]

C, pasted on Mar 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

void prints(char *p){
    if(*p != '\0') prints(p + 1);
    if(*p != '\0') printf("%c",*p);
}

int main(void){
    char p[] = "hello";
    prints(p);
    printf("\n");
    return 0;
}


Output:
1
olleh


Create a new paste based on this one


Comments: