Question: Assume an array named data that is defined as: int data [ 5 ] = { 1 , 4 , 8 , 1 2 ,

Assume an array named data that is defined as:
int data[5]={1,4,8,12,16}; //Assume data starts at address 0x1000
and a ptr to data defined as:
int *ptr = data;
What would the following cout statements display?
cout << ptr <<''<< ptr +1<<''<<*ptr <<''<<*ptr +1<<''<<*(ptr +1)<< endl; c ++ please

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!