Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Hi, could you tell me what the line

    *q++ = *(p - 1 - i)

    is doing? I don't understand why you are subtracting 1 and i from p on each iteration of the for loop, seeing as p points to the beginning of text. Shouldn't p point to the end of each word, and then as you work backwards, assigning characters to q, q is built?

    Thanks in advance.