Assume for the program given below that the size of array A is 10 and beginning memory address of the array A is your real student number. Also assume that the elements of the array are your student number placed in the array in the reverse order. Data type of int is stored in 4 bytes in memory. According to this information, write the output of the program given below. (Sample Calculation): A Dizisi (Array A) A'nın Adresi (Address of A) öğrenci No (Student No) 1810206037 {7,3,0,6,0,2,0,1,8,1} 1810206037 2015010206047 {7,4,0,6,0,2,0,1,0,5} 2015010206047 void main ()( int A[101; int *m, **k; m = A; printf("Output 1: $d\n", (m+1)): * (m+2) + 3; m += 4; printf("Output 2: d\n", (m+1)); m = GA[1]; k = sm; printf("Output 3: d\n", (* (k) +1)): printf("Output 4: d\n", *k): m = m - 1; printf("Output 5: d\n", *k);
my name is Mohamud Hassan Mohamed
my student number is 2110205505
Assume for the program given below that the size of array A is 10 and beginning memory address of the array A is your real student number. Also assume that the elements of the array are your student number placed in the array in the reverse order. Data type of int is stored in 4 bytes in memory. According to this information, write the output of the program given below. (Sample Calculation): A Dizisi (Array A) A'nın Adresi (Address of A) öğrenci No (Student No) 1810206037 {7,3,0,6,0,2,0,1,8,1} 1810206037 2015010206047 {7,4,0,6,0,2,0,1,0,5} 2015010206047 void main ()( int A[101; int *m, **k; m = A; printf("Output 1: $d\n", (m+1)): * (m+2) + 3; m += 4; printf("Output 2: d\n", (m+1)); m = GA[1]; k = sm; printf("Output 3: d\n", (* (k) +1)): printf("Output 4: d\n", *k): m = m - 1; printf("Output 5: d\n", *k);
Step by step
Solved in 3 steps with 3 images