Question: int * pVal; int myArray[5] = {1,2,3,4,5}; Consider the code above. Which is the correct way to set the pointer pVal to point to the
![int * pVal; int myArray[5] = {1,2,3,4,5}; Consider the code above.](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f30964a0545_68466f309643e921.jpg)
int * pVal; int myArray[5] = {1,2,3,4,5}; Consider the code above. Which is the correct way to set the pointer pVal to point to the 3rd element of array myArray? *pVal = myArray[3]; pVal = &myArray[3]; pVal = myArray[2]; pVal = &myArray[2]; pVal = myArray[3]; *pVal = myArray[2]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
