c++ - What is wrong with this code in string reversal? -
I get the error mentioned below in the following section of the code. Please tell me why * p = t returns an error here
zero reverse (four * p) {int length = strlen (p); Int c = 0, i = length / 2; Char * Temp = p + length-1, t; While (c & lt; length) {t = * temp; * Temp = * p * p = t; // incorrectly in error, why is there a typed four * // line in the correct operator? C ++; Temp--; A semi-colon is missing:
T = * Temporary; * Temp = * p; // - Here * p = t;
Comments
Post a Comment