Following program is given.pl tell me what will be output of this program and also explain how to get it
#include<iostream.h>
void main ( )
{ int Track [ ] = {10, 20, 30, 40}, *Striker ;
Striker=Track :
Track [1] += 30 ;
cout<<"Striker>"<<*Striker<<endl ;
Striker – =10 ;
Striker++ ;
cout<<"Next@"<<*Striker<<endl ;
Striker+=2 ;
cout<<"Last@"<<*Striker<<endl ;
cout<< "Reset To" <<Track[0] <<endl ;
}
As im a beginner at c++ and i was learning pointers so it would be really helpful if you could explain the output from the starting and also in my book, answer to the program was given as follows but i really dont have any idea how this came.