void reverse(char *s) { · int len = strlen(s) -1; · //because arrays index starts at 0 · //therefore we do -1 · char temp, *copy; · copy = s; · copy += len;.
確定! 回上一頁