Question: In C please Consider this block of code below. Trace the following code as explained in class. Show the starting address, the intermediate and final

 In C please Consider this block of code below. Trace the

following code as explained in class. Show the starting address, the intermediate

In C please

Consider this block of code below. Trace the following code as explained in class. Show the starting address, the intermediate and final values of the variables. A variable of type 'int' takes 4 bytes and any pointer variable takes 8 bytes of space. Assume the starting address that is available is 1000 (calculate in decimal). For each of the starting addresses S-1 to S-10, there is only one number, please write that down. However, for each of the variable values V-1 to V- 10, there can be more than one values (starting, intermediate and final). Write all of them down, separated by comma For example, if V-4 has 3 values then write them down as V-4=1,2,3. You DON'T need to create a table for your answer. Just mention in each separate line, variable name = answer. For example, S-1=1 S-2=2 and so 011... int x = 0, y = 2, Z = 4: Starting address location is 1000 (calculate in decimal) int *p; Variable Name Starting Address Value int top; X S-1 int arr [5] = { 1, 2, 3, 5, 8 }; V S-2 V-2 P = EX; +++; int x = 0, y = 2, z = 4; Starting address location is 1000 (calculate in decimal) int *p; Variable Name Starting Address Value int **pp; X S-1 V-1 int arr[5] = { 1, 2, 3, 5, 8 }; S-2 V-2 p = &X; Z S-3 V-3 ++*p; S-4 p V-4 p = Earr[0]; arr [+p++] = 20; S-5 V-5 +++ = 10; arr [0] S-6 V-@ arr [1] V-7 pp = p; arr [2] S- V arr[++++pp++] = 30; arr[8] S-9 V-9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!