Question d’entretien chez Apple

How to detect stack overflow at runtime in C, when running a recursive Fibonacci functon

Réponse à la question d'entretien

Utilisateur anonyme

23 nov. 2014

define global static variable, in main to get the first stack address approx, then define local variable in the function and compare the diff between the addresses

4