The following program gives output:
hffltgpshfflt
Can somebody explain this how does operator precedence of postfix++,prefix++ and dereference(*) operators decide this output?
#include<stdio.h>
int main()
{
char arr[] = "geeksforgeeks";
char *ptr = arr;
while(*ptr != '\0')
++*ptr++;
printf("%s %s", arr, ptr);
getchar();
return 0;
}