recursion

void test(int);
int main()
{
test(5);
while(!kbhit());
return 0;
}
void test(int x)
{
if(x>1)
{
test(x/2);
test(x/2);
}
printf("*");
}

here ^ is printed 7 times I just want explanation......?
Topic archived. No new replies allowed.