&a+1 is valid . Basically &a is the address of the entire array so, &arr+1
will point beyond this array.
a is the base address and &a+1 will point to the next element in the array.

On Mon, Aug 8, 2011 at 7:59 PM, Brijesh Upadhyay <
[email protected]> wrote:

> int main()
> {
>    int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12};
>    printf("%u %u %u",a, a+1,&a+1);
>    getch();
> }
>
> how &a+1 is valid..?? please explain
>
> --
> Regards,
> Brijesh Upadhyay
> CSE , final year.
> Thapar University
>
> --
> 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.
>
>


-- 
Regards
Rajeev N B <http://www.opensourcemania.co.cc>

"*Winners Don't do Different things , they do things Differently"*

-- 
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