Question: Write a function that will operate on a string and escape all instances of ' ', and '' with a ''. For example: Passing in

Write a function that will operate on a string and escape all instances of '<', '>', and '\' with a '\'.

For example: Passing in " world\" would result in "\ world\\"

Your function should handle strings of arbitrary length. If you have any questions about the problem, make reasonable assumptions and state your assumptions in your reply.

You may use any of the following programming languages to complete this task:

- C

- C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!