Can anyone explain the logic how to add a and b?
a
b
#include int main() { int a=30000, b=20, sum; char *p;
C standard says that E1[E2] is equivalent to *((E1) + (E2)). Therefore:
E1[E2]
*((E1) + (E2))
&p[b] = &*((p) + (b)) = ((p) + (b)) = ((a) + (b)) = a + b