سؤال

I desperatly tried to find out what symbol '\nquit' is... and I couldnt find any reference in the web.

What I tried to find is a complete list of all of those characters (\n, \p, \0, ...) but I couldn't find any.

cheers usche

هل كانت مفيدة؟

المحلول

Wikipedia has a list of C language escapes here.

As noted in my comment, I believe this represents the newline (linefeed) character \n followed by the word quit (which would be forced by the newline to the beginning of the next line of output). But in that case the string should be "double"-quoted rather than 'single'-quoted.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top