Lecture Practice Quiz 18 /* If memory has the following layout, what will the following program print? */ /* +----------------+ */ /* a 0x0000100c | | actually 0xbf951c9c when I ran it */ /* +----------------+ */ /* b 0x00001008 | | actually 0xbf951c98 when I ran it */ /* +----------------+ */ /* p 0x00001004 | | actually 0xbf951c94 when I ran it */ /* +----------------+ */ /* q 0x00001000 | | actually 0xbf951c90 when I ran it */ /* +----------------+ */ #include int main(void) { int a = 10; int b = 20; int *p = &b; int *q = p; q++; (*p)--; /* 1. __________________*/ printf(" a = %i\n", a); /* 2. __________________*/ printf("&a = %p\n", &a); /* 3. __________________*/ printf(" b = %i\n", b); /* 4. __________________*/ printf("&b = %p\n", &b); /* 5. __________________*/ printf(" p = %p\n", p); /* 6. __________________*/ printf("&p = %p\n", &p); /* 7. __________________*/ printf("*p = %i\n", *p); /* 8. __________________*/ printf(" q = %p\n", q); /* 9. __________________*/ printf("&q = %p\n", &q); /*10. __________________*/ printf("*q = %i\n", *q); }