/** * Recursion depth * @author ggtowell * Created: March 2020 * **/ #include //#pragma GCC diagnostic error "-Wframe-larger-than=1" /** * Recursion depth printer. Max at 1000000 * @param d -- the current depth * **/ int rec(int d) { if (d>1000000) return 0; // add a variable here and see the effect double arr[100]; fprintf(stderr, "%d\n", d); return rec(d + 1); } int main(int argc, char const *argv[]) { rec(1); return 0; }