Determine Output:
void 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]);
}
void 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]);
}
A. mmm nnn aaa
B. mmmm nnnn aaaa
C. Compiler Error
D. None of These
Answer: Option D

Could anyone please tell me the meaning of s[i] in the for loop condition. I mean what does it depict?
what is the name of the printed circuit board
the ans is mmmm aaaa nnnn
so option D is the correct..(none of these)
Ans is Wrong.
But answer will be mmmm aaaa nnnn
"mmmm aaaa nnnn "
it output is "mmmm aaaa nnnn "
answer is mmmm aaaa nnnn
answer should be mmmm aaaa nnnn
answer must be mmmm aaaa nnnn