Menu

[Solved]Intro Unix Course Comments C Come Two Forms Block Format Started Ending Often Different Li Q37188477

INTRO TO UNIX COURSE

  1. Comments in C++ come in two forms: the block formatstarted by a /* and ending with a */, often on different lines, andthe inline format started by // and ended at the end ofthe line.

    What command would you give to list all lines of commented.cppthat contain inline comments?

  2. What command would you give to print (display on the screen) thecontents of commented.cpp with all inline comments removed (and noother changes to the text)?

I need help with these grep commands.  

Expert Answer


Answer to INTRO TO UNIX COURSE Comments in C++ come in two forms: the block format started by a /* and ending with a */, often on … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *