Problem Statement - Output writing – pointer and pointer value increment for array
Find and write the output of the following C++ program code.
int main( ) { int Ar[]={1,3,8,10,4,6,7} ; int *Ptr= Ar, I ; cout<<++*Ptr++ << '@' <<endl; for( int x=0; x<7 ;x++) cout<<Ar[x]<<" "; cout<<endl; I = Ar[3] - Ar[2] ; cout<<++*(Ptr+I)<<'@'; cout<<Ar[I]<<'@'; return 0; }
Solution
CSKC| Created: 19-Sep-2019 | Updated: 19-Feb-2020|