Answer must be tail recursion then:
Code:
void test2a(int i)
{
	if (i<10)
	{
		printf("%d ",i);
		test2a(i+1);
	}
}

void test2()
{
	test2a(0);
}