A[i]=A+i;

so 3.

On Thu, Dec 16, 2010 at 5:25 PM, UMESH KUMAR <kumar.umesh...@gmail.com> wrote:
>
> main()
>>>
>>> {
>>>  int a[5]={1,3,6,7,0};
>>>  int *b;
>>>  b=&a[2];
>>>  cout<<b[-1];
>>> }
>>>
>>> the value of b[-1] is
>>> a.1
>>> b.3
>>> c.-6
>>> d.none
>>>
>
> ANS will be 3.
> Because Compiler internally first converted in the form as  *(b-1) , and get
> the one position back at the position 3.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

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

Reply via email to