Itβs a bit of help to understand what exactly is happening in this piece of code. When I run the program, it prints 7.
#include <stdio.h> int main() { int a[] = {1,2,3,4,5,6,7,8,9}; int b[] = {1,2,3,4,5,6,7,8,9}; int c = 5; int *p = a; printf("--> %d", (c[b])[p]); return 0; }
I'm a little confused when it comes to the (c [b]) [p] part of the printf statement. Any help / explanation would be greatly appreciated.
source share