#include #include size_t kb_to_fill = 0; size_t stack_location; int recur_with_space(){ char array[1024]; for(int i = 0; i < 1024; i++){ array[i] = random() % 255; } kb_to_fill++; printf("At %lu frames, used about %lu bytes\n", kb_to_fill, stack_location - (size_t)array); recur_with_space(); } int main(){ int a = 100; stack_location = (size_t)&a; recur_with_space(); }