While looking at some conceptual questions in C,I came across this question in a book. What is the output of the following program ?
#include<stdio.h>
#include<string.h>
int main()
{
static char s[25]="The cocaine man";
int i=0;
char ch;
ch=s[++i];
printf("%c",ch);
ch=s[i++];
printf("%c",ch);
ch=i++[s];
printf("%c",ch);
ch= ++i[s];
printf("%c
",ch);
return 0;
}
答复:
hhe!
谁能解释这一产出如何?