I am using the following code to reverse a four array. My code and error can also be found below.
My code:
Four * reverse est (four * s) {int i = 0; // string string while (S [ii]) i ++; Four reversed [i]; For (int j = 0; j and lt; i; j ++) {reverse [j] = s [i-j-1]; // See it later) Return * (Reversed); } Error:
Compile ... Compile error: Your program has not been compiled properly: program.c: function 'char * reverseStr (Char *) ': program.c: 18: Error:' Four 'to' Four * '- & gt; 17:} - & gt; 18: Return * (Reverse); Thank you in advance!
I not in your code const .
Four reverse essers (four * s) {int i = 0; // ---> & gt; & Gt; No, while (S [ii]) I ++; Four reversed [i]; For (int j = 0; j and lt; i; j ++) {reverse [j] = s [i-j-1]; // See it later) Return * (Reversed); } true opposite [i]; --- & gt; The array of variable lengths in C ++ ??? i is known on compiled time.
Comments
Post a Comment