0

Why the next line after //\ is commented out in C++ ? Like I know about "//" and "/* ... */ " but after putting //\ the next line is automatically commented out !

yadav_gaurav
  • 15
  • 1
  • 6
  • https://stackoverflow.com/questions/19405196/what-does-a-backslash-in-c-mean probably better duiplicate as more generic answer... – Alexei Levenkov Oct 31 '20 at 07:19
  • Also [this answer](https://stackoverflow.com/questions/1642028/what-is-the-operator-in-c/8909176#8909176) recently revived on [MSO](https://meta.stackoverflow.com/questions/402446/is-this-old-answer-to-an-old-question-a-good-example-of-a-good-answer) happens to be applicable here, too ;-) – dxiv Oct 31 '20 at 07:21

1 Answers1

0

\ at the end of a line is line continuation for comments and preprocessor.

Pete Becker
  • 74,985
  • 8
  • 76
  • 165
bolov
  • 72,283
  • 15
  • 145
  • 224