![]() One could attempt to represent the string to be printed as a single literal as follows: Suppose we want to print out Hello, on one line, followed by world! on the next line. For example, \n is an escape sequence that denotes a newline character. ![]() In C, all escape sequences consist of two or more characters, the first of which is the backslash, \ (called the " Escape character") the remaining characters determine the interpretation of the escape sequence. An escape sequence is a sequence of characters that does not represent itself when used inside a character or string literal, but is translated into another character or a sequence of characters that may be difficult or impossible to represent directly. ![]() ( September 2013) ( Learn how and when to remove this template message)Įscape sequences are used in the programming languages C and C++, and their design was copied in many other languages such as Java, PHP, C#, etc. Please help to improve this article by introducing more precise citations. ![]() This article includes a list of general references, but it lacks sufficient corresponding inline citations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |