we have only taken loops, if statements, strings, arrays, pointers. make sure to only use these. simple coding for beginners nothing too complex with comments. for this code you need to use string (array of char) and string manipulation functions. question: Write a function: void reverse(char * line, char * reversed) that takes data a line at a time and reverse the words of the line. For example, Using the reverse function, write a program which, in a loop:1. Prompts user to enter a line and reads it from input2. Passes the string to function reverse3. Prints out the reversed line4. Prompts the user to ”do another” by typing ”y”, or to quit the program by typing anything else.Sample Output: Enter a line: birds and bees The reverse is: bees and birds Do Another (y/n)?y Enter a line: Hello World The reverse is: World Hello Do Another (y/n)?n Press any key to continue
programming in c code
How it works
- Paste your instructions in the instructions box. You can also attach an instructions file
- Select the writer category, deadline, education level and review the instructions
- Make a payment for the order to be assignment to a writer
- Download the paper after the writer uploads it
Will the writer plagiarize my essay?
You will get a plagiarism-free paper and you can get an originality report upon request.
Is this service safe?
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Recent Comments