Write a program that reverses a string with the in themain


Write a program that reverses a string with the following features:

-In themain function, ask the user to enter a string.

-The entered string can be handled as C-string (or converted to C-string).

-Write areverseString function that takes the string parameter (C-string or char *) and reverse it.

-In themain function, print out the original string and the reversed string.

-ThereverseString function must be implemented using pointer notation.

-Using non-pointer notations to implementreverseString will result in a 3-point deduction.

-Using library functions to do reserve will result in a 5-point deduction.

(It is OK to use a function to get string's length. It'd even better to count the length in the code).

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a program that reverses a string with the in themain
Reference No:- TGS01154495

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)