ptrVar1 = intVar1; Given the following C statements, what would the result of the printf statement be? int a = 25; int *ptr_a; = &a; *a_ptr = 55; printf(“The current value of a is %d .\n”, a); Given the following C statements and memory map, what would be the result of the printf statement? int a = 11; int b[2] = {10,6}; printf(“The address of b is %x \n”, b); Address Data Address Data (continued) 0xBFFFF8F0 3E 0xBFFFF8FA 00 0xBFFFF8F1 3F 0xBFFFF8FB 0B 0xBFFFF8F2 4A 0xBFFFF8FC 00 0xBFFFF8F3 0A 0xBFFFF8FD 00 0xBFFFF8F4 00 0xBFFFF8FE 00 0xBFFFF8F5 00 0xBFFFF8FF 4D 0xBFFFF8F6 00 0xBFFFF900 08 0xBFFFF8F7 06 0xBFFFF901 2C 0xBFFFF8F8 00 0xBFFFF902 33 0xBFFFF8F9 00 Lesson 6 Functions and the Stack –
ptrVar1 = intVar1; Given the following C statements, what would the result of the printf statement be? int a = 25; int *ptr_a; = &a; *a_ptr = 55; printf(“The current value of a is %d .\n”, a); Given the following C statements and memory map, what would be the result of the printf statement? int a = 11; int b[2] = {10,6}; printf(“The address of b is %x \n”, b); Address Data Address (continued) Data 0xBFFFF8F0 3E 0xBFFFF8FA 00 0xBFFFF8F1 3F 0xBFFFF8FB 0B 0xBFFFF8F2 4A 0xBFFFF8FC 00 0xBFFFF8F3 0A 0xBFFFF8FD 00 0xBFFFF8F4 00 0xBFFFF8FE 00 0xBFFFF8F5 00 0xBFFFF8FF 4D 0xBFFFF8F6 00 0xBFFFF900 08 0xBFFFF8F7 06 0xBFFFF901 2C 0xBFFFF8F8 00 0xBFFFF902 33 0xBFFFF8F9 00 Lesson 6 – Functions and the Stack