I'm wondering how to get an stack overflow error with a simple example, such as:
int recursSum (int n)
{
return (n==1)? 1:n+recursSum(n-1);
}
I ask that stupid question because I only have some Segmentation fault, even with an empty function calling itself…
Am I missing something or is there any protection or something that prevents me for doing this?