0 votes 0 votes #include<stdio.h> int main() { printf("%c\n", 7["IndiaBIX"]); return 0; } Please explain how the output is X ? I know while counting in Array will make X . But how this CODE works.........>>? Programming in C programming-in-c output + – pC asked Apr 8, 2016 pC 1.1k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 3 votes 3 votes working like char a[]="IndiaBIX"; printf("%c\n", 7[a]); here 7[a]=a[7] ManojK answered Apr 8, 2016 selected Apr 13, 2016 by pC ManojK comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Well in C, a[i] always gets translated to *(a + i) so *(a + i) = *(i+ a) a[i] = i[a] hope you get it :) Neelay Upadhyaya answered Apr 10, 2016 Neelay Upadhyaya comment Share Follow See all 0 reply Please log in or register to add a comment.