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