Feedback for subjective question
Question 1: What will be the output of following code segment
int x[5] = {2, 4, 5, 7, 1} ;
int *ptr =&x[2];
cout << (*ptr)++ <<" " ;
cout << *ptr++ ;
int x[5] = {2, 4, 5, 7, 1} ;
int *ptr =&x[2];
cout << (*ptr)++ <<" " ;
cout << *ptr++ ;
Current Answer:
Be the first to post an answer to earn 100CR.