Question: int main ( ) { int a [ ] = { 0 , 1 , 2 , 3 , 4 , 5 } ; int

int main(){ int a[]={0,1,2,3,4,5}; int *ptr = nullptr; int **ptr2ptr = nullptr; ptr = &(a[2]); ptr2ptr = &ptr; ptr[1]=-1; (*ptr2ptr)[2]=-2; cout << a[0]<<""<< a[1]<<""<< a[2]<<""<< a[3]<<""<< a[4]<<""<< a[5]; return 0; .012-1-25 B.012-145 C.0-1-2345 D.0-12345}

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 Programming Questions!