Answer:
<em>In the question given, we made use of c++ coding language for implementation.</em>
Explanation:
<em>From this question given,</em>
<em>we make use of C++ code language</em>
<em>Now, executed the steps in c++ in the question. comments were also included for each line in code for better understanding.</em>
<em>C++ Code:
</em>
<em>
#include <iostream>
</em>
<em>using namespace std;
</em>
<em>
//main function
</em>
<em>int main()
</em>
<em>{
</em>
<em> //initialize the float array
</em>
<em> float testScores[5] = {77, 88.5, 90, 93, 71.5};
</em>
<em>
</em>
<em> //assign a pointer to the array
</em>
<em> float *ptr = testScores;
</em>
<em>
</em>
<em> //output memory address of first element in array
</em>
<em> cout<<"Memory address of first element using & operator: "<<&testScores[0]<<endl;
</em>
<em> cout<<"Memory address of first element using pointer: "<<ptr<<endl;
</em>
<em>
</em>
<em> //display array elements using pointer in for loop
</em>
<em> cout<<"Array elements using pointer: \n";
</em>
<em> for(int i=0;i<5;i++)
</em>
<em> {
</em>
<em> //dereference pointer using *ptr and
</em>
<em> //add i for subsequent elements in array
</em>
<em> cout<<*(ptr+i)<<endl;
</em>
<em> }
</em>
<em> return 0;
</em>
<em>}</em>