I've been using C and C++ since quite a while, and I just happened to come across a program that had single quotes for \n like it was a character ( '\n' ) . It serves the purpose alright, and my assumption is something on the lines of a string consisting of an array of characters and \n is a single character and hence doesn't make any difference. My 2 questions are:
- Why isn't this methodology popular?
- Is \n actually a single character as I'm assuming it to be?