Multiple choice technology programming languages

1.main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("%c%c%c%c",s[ i ],(s+i),(i+s),i[s]); }

  1. mmmmaaaannnn

  2. aaaammmmnnnn

  3. aaaannnnmmmm

  4. Compilation Error

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The loop iterates 3 times (for 'm','a','n'). In each iteration, four expressions print the same character: s[i](array indexing), *(s+i) (pointer dereference), *(i+s) (pointer arithmetic with reversed order), and i[s](array indexing with swapped indices). This is valid C syntax. Each character prints 4 times sequentially: mmmm aaa nnnn.