program to print array elements with references
#include<stdio.h> main() { int a[5]={1,2,3,4,5}; printf("%d\n",a[3]/a[1]); printf("%d\n",a[6]); printf("%d\n",a[-2]); printf("%d\n",a[0]); printf("%d\n",a[2]); printf("%d\n",2[a]); printf("%d\n",2[a]); printf("%d\n",*(a+1)); printf("%d\n",*a+1); }OutPut:
2 0 4195718 1 3 3 3 2 2