Will a program crash if there are so many recursive calls happen in the function?
For example:
count_number(test_number){
if(test_number == 0)
return 0;
else{
int a = "Any Random number";
return (a + count_number(test_number - 1))/test_number;
}
Is it possible for the program to crash if I call count_number(1000000)?
I currently wrote a similar function, but when I tried to test it with 100k number of tests, the function just crashes before it even started.