Question: C programs use comment lines of the form /* comments */, where */ can be placed on a different line to allow for multiline comments.

C programs use comment lines of the form /* comments */, where */ can be placed on a different line to allow for multiline comments. Develop a program that removes all comment lines in a program named foo.c. Why is it difficult to do this job with sed?

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 Programming Questions!