:confused: Could any one justify why is the result of the following code 100 100 100 99 99??
main()
{
static int arr[]={97,98,99,100,101,102,103,104};
int *ptr=arr+1;
print(++ptr, ptr--, ptr ,ptr++ ,++ptr);
}
print( int *a, int *b, int *c, int *d, int *e)
{
cout<<*a<<" "<<*b<<" "<<*c<<" "<<*d<<" "<<*e<<endl;
}