Fill This Form To Receive Instant Help
Homework answers / question archive / CODE IN C99 Use your function to write a program that prompts the user to enter a message and then displays it in reverse
CODE IN C99
Use your function to write a program that prompts the user to enter a message and then displays it in reverse. You can assume the message is no longer than 200 characters. Hint: Use two pointers — one initially pointing to the first character of the string and the other initially pointing to the last character of the string. Then, swap these characters. Use pointer arithmetic to move the first pointer toward the end of the string and the second toward the beginning. Repeat until the pointers cross each other