Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

(C++) Guys help me pls. I was given this problem....... Write a function reverseString that takes one arguement - a C style string (a char*) and reverses it. This function should modify the values of the original string, and should return nothing. Answers are always welcome for me :)

OpenStudy (e.mccormick):

Do a loop that goes over the string half as many times as the length. Swap ends based on where you are in the loop. In psudocode: char str[]="this is a test" x = strlen(str) for(int i=0; i<x; i++) { swap str[1] and str[x-i] }

OpenStudy (anonymous):

thank u very much..

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!