Values & References2 / 18
Up next

Pointer arithmetic

#include <stdio.h>

int main(void) {
    int a[] = {10, 20, 30};
    int *p = a;
    printf("%d\n", *(p + 2));
    printf("%d\n", p[1]);
    return 0;
}
What you're solving

adding steps by element size