ptr is pointing to array. *(ptr++) will give ptr and *ptr will give
1,further ptr will be incremented and will point to 2.

On Sat, Jul 2, 2011 at 10:17 PM, Deoki Nandan <[email protected]> wrote:

> #include<iostream>
>
> using namespace std;
>
> int main()
> {
>     int intArray[]={1,2,3};
>     int *p=intArray;
>     cout<<*(p++);
>     return 0;
> }
>
> output :
>
> 1
>
>
> --
> **With Regards
> Deoki Nandan Vishwakarma
>
> *
> *
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
  best wishes!!
Vaibhav Shukla
    DU-MCA

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to