#include #include #include int main() { void * brk = sbrk(0); extern char _end; printf(".bss ends at %p\n", &_end); printf("Heap ends at %p (run this multiple times!)\n", brk); printf("malloc(0) returns %p\n", malloc(0)); return 0; }