M
madhura
Hello,
I have a problem with an array, The code is:
main()
{
char s[]="Hello";
int i=0;
while(s!=0)
{
printf("\n%c %c",s,*(s+i));
printf("\n%c %c",i,*(i+s));
i++;
}
}
The output of above code is H H
H H
e e
e e
till o.
I have a problem with the second printf statement, I have not declared
i[] array, then how come that i am getting this output, how that
expression is interpreted.
Cheers
Madhura
I have a problem with an array, The code is:
main()
{
char s[]="Hello";
int i=0;
while(s!=0)
{
printf("\n%c %c",s,*(s+i));
printf("\n%c %c",i
i++;
}
}
The output of above code is H H
H H
e e
e e
till o.
I have a problem with the second printf statement, I have not declared
i[] array, then how come that i am getting this output, how that
expression is interpreted.
Cheers
Madhura