Question: 3 . Given the declarations and data shown below, evaluate each of the expressions and state its value. Evaluate each expression with the original data

3. Given the declarations and data shown below, evaluate each of the expressions and state its value. Evaluate each expression with the original data shown (that is, the results of one expression do not affect the following one). Assume that the ints array begins at location 1000 and that integers and pointers both occupy *four* bytes of memory. Note: Some expressions are undefined. ```c++ int ints[20] = { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 100, 120, 130, 140, 150, 160, 170, 180, 190, 200 }; int *ip = ints + 3; ``` | Expression | Value | Expression | Value |

| ------------- | -------------| ----------- | ------------- | | `ints` |-------------| `ip` |-------------- | | `ints[4]` |-------------| `ip[4]` |-------------- | | `ints + 4` |-------------| `ip + 4` | -------------- | | `*ints + 4` |-------------| `*ip + 4` | -------------- | | `*(ints + 4)` |-------------| `*(ip + 4)` | -------------- | | `ints[-2]` |-------------| `ip[-2]` | -------------- | | `&ints` |------------ | `&ip` |-------------- | | `&ints[4]` |-------------| `&ip[4]` | -------------- | | `&ints + 4` |------------- | `&ip + 4` | -------------- |

Anyone help me fill the results in the blank, I want to check this answer with my answer. Thanks

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!