every C learner's nightmare #2: recursion
Can someone please explain how this program works?
1. How are multiple instances of c preserved? Where are the multiple values stored?
2. How can putchar() print out all the multiple values of c without some type of loop? How is it accessing the values of c?
I don't know how this can be done without some type of array. Very baffling. Thanks in advance.
printf("Input a line: ");
if((c = getchar()) != '\n')
Input a line: Hello World