0
Odd output from reversed string program
as a little c++ practice I'm trying to reverse a string. problem is, it more jumbles the string than reverses it. am I reversing the string wrong? https://code.sololearn.com/c2QyAe3BzEO1/?ref=app
1 Resposta
+ 1
text is of type char[] (equivalent to char*).
sizeof(text) == sizeof(char*) == sizeof(void*)
It does not give the length of the array