3.4k views
2 votes
Assume that the array starts at address 100 (decimal) and that ints are 4 bytes long. What is the R-value of this expression:

User Jim Biard
by
5.0k points

1 Answer

2 votes

Answer:

The answer is "5".

Step-by-step explanation:

please find the complete question in the attached file.

Follows are the code to the question, which is defined in attached file please find it.

In the above-given code, an integer array arr is defined, that holds some values, in the next step, a pointer variable "ip" is defined that adds value 4 in the "arr".

In the next line, the pointer variable is used that holds elements, which is available on 4 index that is equal to "3" and adds value 2, and use the print method to print its value, that is equal to 5.

Assume that the array starts at address 100 (decimal) and that ints are 4 bytes long-example-1
Assume that the array starts at address 100 (decimal) and that ints are 4 bytes long-example-2
User Iamsuman
by
5.2k points