) {max=p;/**********found**********/ q=p+i; } i++; }/**********found**********/ wihle(q>p) { *q=*(q-1); q--; } p[0]=max;}main(){char str[80]; printf("Enter a string: "); gets(str); printf("\nThe original string: "); puts(str); fun(str); printf("\nThe string after moving: "); puts(str); printf("\n\n");}