Message from C, C++ discussions

December 2019

— I dont know what it returns. But the reversed string is returned by the passed argument not by the returned value.

Message permanent page


char string[] = "good bye"
for (i = 0; string[i]!='\0'; i++)
But u didn't place a 0-term into array...

— It is in place operation

— He has a lot of mistakes with arrays.

— Ya I think s/he is beginner

— S/he is opening and closing the file just to read and write.😀

— What s/he can do is just open it for read and write and when done close.

— Learn about arrays. Char arrays and operations with file.

— No this

— Isnot

— If i remove the strrev() it works fine

— Why this is For