#include <stdio.h>
int main()
{
int a[5] = {1,2,3,4,5};
printf("%d \n", a[1]);
printf("%d \n", 1[a]);
printf("%d \n", a[2]);
printf("%d \n", 2[a]);
return 0;
}
How is the 7th and 10th line of code working?? After executing the program, I got the following result
2
2
3
3