p[b] is equivalent to *(p+b)

here p is converted to the void pointer pointing to address location 0x0003

then the pointer value is added by the offset b which is 8 here .

8+3 giving 11


this is one of the method of finding the sum of two numbers without using
addition operator....

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