Question: Write the code of the following source files in a folder named Q1. Then include them in your report. i. main.c: contains the code
Write the code of the following source files in a folder named "Q1". Then include them in your report. i. main.c: contains the code shown above. ii. copy.c: Contains the definition of the "copy" function that will copy the input parameter "s" to the global sting "s2". Then calls the "print" function. iii. rev.c: Contains the definition of the "rev" function that will copy the input parameter "s" to the global sting "s3" in the reverse order. Then calls the "print" function. iv. print.c: Contains the definition of the "print" function that will display the string given as a parameter "s".
Step by Step Solution
3.45 Rating (148 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
