Hi,
I have a life changing exam today(its 12.45am here). Now i bumped in a sample question i have collected. It prompts to correct the error but i cant find any... Can you please help me..
1 2 3 4 5 6
int i,p[]={1,2,3,4};
for(i=0;i<4;i++)
{
cout<<*p;
p++;
}
I know that 'p' points to case address of array and can't find any problems with pointer arithmetic... Please help. Thanks for patience...