filmov
tv
Learn C Programming - Escape Sequences

Показать описание
In my previous tutorial, Beginning Printf, I introduced the concept of the conversion specification character % to interject variable values into a string literal. In this tutorial I will explain what that mysterious \n is that we have seen on various occasions. Escape sequences are always prefixed with the backslash character \ and they are contained inside of string literals. The term string literal is just a fancy way of saying a word or a sentence. Simply put, a string literal begins with a double quote and ends with another double quote - everything in between is considered the value of the string literal.