What is the difference between '\n' or “\n” in C++?

I've seen the new line \n used 2 different ways in a few code examples I've been looking at. The first one being '\n' and the second being "\n". What is the difference and why would you use the '\n'?

I understand the '\n' represents a char and "\n" represents a string but does this matter?

10
задан mikerobi 26 October 2010 в 20:50
поделиться