According to the definitioon here http://stackoverflow.com/questions/7849684/what-is-semantic-errors-in-c-language-give-some-examples this should be a semantic error. Can someone confirm?
@Kapil According to the definition in that link, "Semantic errors. These are valid code the compiler understands, but they do not what you, the programmer, intended." Here it doesnt seem like the programmer intended to print the new line character. However, I am not sure if this is the definiton that is usually followed for semantic errors.
64.3k questions
77.9k answers
244k comments
80.0k users