Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This uses C (C only please) I need this within the hour please help me :( I need help QUESTION 12 30 points Save Answer

image text in transcribedThis uses C (C only please) I need this within the hour please help me :( I need help

QUESTION 12 30 points Save Answer C5-1714-0D4-Spring-2021-Computer Programming Il- swx913- Jose Antonio Jimenez 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 5-9, there is only one number, please write that down. However, for each of the variable values V-1 to V-9, 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 on... int X = 20, Y = 30, Z = 40; Starting address location is 1000 (calculate in decimal) Variable Starting Name Address Value int *p; int arr (5) = { { 6, 5, 4, 3, 2 }; S-1 V-1 p = arr; S-2 V-2 *p+- = 10; Z S-3 V-3 p = carr[2]; *++p = 20; p S-4 V-4 arr[0] S-5 V-5 arr [1] S-6 V-6 arr [2] S-7 V-7 arr [3] S- arr [4] S-9 V-9

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions