How does a compiler (C/C++) identify a comment? [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . If my program has a string s1= "like/*this" , s2="like /*this is a comment */this" and s3 = "like // this is not a comment" In s1 and s3, "/ " and "//*" are part of the string. In s2, It is a comment for the users to be displayed on the output screen. What algorithm does the c/c++