*bangs head on desk*
I must be stupid or something, lol!
I tried a few things (what is commented out):
#include <stdio.h>
//#define N 100
//int A[] = {100};
//quicksort(list, 0, 99);
//void quicksort (int *, int, int);
static int number_of_calls;
void f()
{
static int i;
if (i++ == 10)
return;
number_of_calls++;
f();
}
int main(void)
{
f();
printf("%d calls to f()\n", number_of_calls);
return 0;
}
Unfortunately the book I have doesn't really help me much. What am I doing wrong?