Question: 5. (30pt) Write a C program, remove_comments.cpp that removes comments from a given C program that is assumed to be correct. Your program will accept

 5. (30pt) Write a C program, remove_comments.cpp that removes comments from

5. (30pt) Write a C program, remove_comments.cpp that removes comments from a given C program that is assumed to be correct. Your program will accept one input file in the command line $ remove.comments input C source.cpp and will write the output in the file input.C.source_ren.cpp. There are two types of comments: (1) // ... ENTER and (2) /* ... */ Your program should remove all instances of both types from any possible C source code file. You are not allowed to use any tools to build your program; it has to be written by hand

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!