Question: I need help with this thanks: Write a program segment to declare a pointer variable named test1 pointing to an array of 500 integers. Declare

I need help with this thanks:

Write a program segment to declare a pointer variable named test1 pointing to an array of 500 integers. Declare another pointer variable named test2 that starts with the base address of test1. Then, write a loop to assign the values 1 through 5 to the elements of the array referenced by test1. Show how to display the contents of the arrays referenced by test1 and test2.

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!