Question: Given the following code: int A = {2, 5, 4, 1}; int p* = &A; Which is the right command to print the value 4?

Given the following code: int A = {2, 5, 4, 1}; intGiven the following code: int A = {2, 5, 4, 1}; int p* = &A; Which is the right command to print the value 4?

Please explain the answer! Thank you!

Given the following code intA={2,5,4,1}intp=&A Which is the right command to print the value 4 ? Coutp+3Cout(p+3)Cout

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!