#include main() { int i, j; static int k; char *ptr1, *ptr2, *ptr3; ptr1 = "hello, world"; ptr2 = (char *)malloc(32 * sizeof(char)); ptr3 = (char *)malloc(32 * sizeof(char)); printf("&i (auto) = %p\n", &i); printf("&j (auto) = %p\n", &j); printf("sbrk(0) = %p\n", sbrk(0)); printf("ptr3 (heap) = %p\n", ptr3); printf("ptr2 (heap) = %p\n", ptr2); printf("&k (static) = %p\n", &k); printf("ptr1 (text) = %p\n", ptr1); printf("&main (code) = %p\n", &main); }