

{"id":57612,"date":"2019-06-04T12:11:02","date_gmt":"2019-06-04T06:41:02","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=57612"},"modified":"2019-07-03T17:40:34","modified_gmt":"2019-07-03T12:10:34","slug":"escape-sequence-in-c","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/","title":{"rendered":"15 Types of Escape Sequence in C that Make your Coding Better"},"content":{"rendered":"<p><em>An Escape Sequence in C is a sequence of characters that doesn&#8217;t represent itself when used inside a character or a string literal but has its own specific function.\u00a0<\/em><\/p>\n<p>So far we have learned the character set along with <a href=\"https:\/\/data-flair.training\/blogs\/tokens-in-c\/\"><strong>Tokens in C<\/strong><\/a> in detail but we haven\u2019t come across the term <strong>\u201cEscape sequence\u201d.<\/strong><\/p>\n<p>In order to unveil this topic, let us begin step by step its detailed discussion.\u00a0The concept of escape sequences was originally developed in the C language, and then, later on, carried to other languages like C# and Java.<\/p>\n<h2>What is Escape Sequence in C?<\/h2>\n<p><em>An escape sequence is a sequence of characters used in formatting the output and are not displayed while printing text on to the screen, each having its own specific function.<\/em><\/p>\n<p>All the escape sequences in C are represented by 2 or more characters, one compulsorily being <strong>backslash (\\)<\/strong> and the other any character present in the C character set.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57625\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C.jpg\" alt=\"Escape Sequence in C Language\" width=\"802\" height=\"420\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C.jpg 802w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C-520x272.jpg 520w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<h2>Significance of Escape Sequence in C<\/h2>\n<p>In order to acknowledge the significance of escape sequences, let us consider a simple problem at hand where we want to display some text in a new line in order to enhance code readability. A novice at C programming would say that this task can be ambiguously achieved by placing multiple white spaces in the<strong> printf() function<\/strong>.<\/p>\n<p>This is not an appropriate method to solve this problem, as it proves to be quite inconvenient and requires multiple test cases to get the output according to the user\u2019s wish. We can solve this problem by using <strong>\\n escape sequence.<\/strong> Not only this, the C language offers about 15 escape sequences that allow the user to format the output on the screen.<\/p>\n<p><em><strong>Before we move ahead let&#8217;s revise the concept of <a href=\"https:\/\/data-flair.training\/blogs\/functions-in-c\/\">Functions in C<\/a><\/strong><\/em><\/p>\n<p><strong>Here is a simple code in C which illustrates the use of \\n escape sequence:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#include&lt;stdio.h&gt;\r\nint main()\r\n{\r\n\r\nprintf(\"Welcome\\n\");\r\nprintf(\"to\\n\");\r\nprintf(\"DataFlair\\n\");\r\nprintf(\"tutorials!\\n\");\r\nreturn 0;\r\n}<\/pre>\n<p><strong>Code on Screen-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/N-escape-sequence-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57615\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/N-escape-sequence-in-C.jpg\" alt=\"Example of n escape sequence in C\" width=\"1303\" height=\"684\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/N-escape-sequence-in-C.jpg 1303w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/N-escape-sequence-in-C-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/N-escape-sequence-in-C-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/N-escape-sequence-in-C-768x403.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/N-escape-sequence-in-C-1024x538.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/N-escape-sequence-in-C-520x273.jpg 520w\" sizes=\"auto, (max-width: 1303px) 100vw, 1303px\" \/><\/a><\/p>\n<p><strong>Output<\/strong>&#8211;<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-n-escape-sequence-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57616\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-n-escape-sequence-in-C.jpg\" alt=\"Output of n escape sequence in C\" width=\"1300\" height=\"666\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-n-escape-sequence-in-C.jpg 1300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-n-escape-sequence-in-C-150x77.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-n-escape-sequence-in-C-300x154.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-n-escape-sequence-in-C-768x393.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-n-escape-sequence-in-C-1024x525.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-n-escape-sequence-in-C-520x266.jpg 520w\" sizes=\"auto, (max-width: 1300px) 100vw, 1300px\" \/><\/a><\/p>\n<h2>Types of Escape Sequence in C<\/h2>\n<p>There are 15 types of<a href=\"https:\/\/en.wikipedia.org\/wiki\/Escape_sequences_in_C\"> escape sequence<\/a> in C to achieve various purposes.<\/p>\n<p><strong>Here is a table which illustrates the use of escape sequences in C:<\/strong><\/p>\n<ol>\n<li><strong>\\n<\/strong> (New line) &#8211;\u00a0We use it to shift the cursor control to the new line<\/li>\n<li><strong>\\t<\/strong> (Horizontal tab) &#8211;\u00a0We use it to shift the cursor to a couple of spaces to the right in the same line.<\/li>\n<li><strong>\\a<\/strong> (Audible bell) &#8211;\u00a0A beep is generated indicating the execution of the program to alert the user.<\/li>\n<li><strong>\\r<\/strong> (Carriage Return) &#8211;\u00a0We use it to position the cursor to the beginning of the current line.<\/li>\n<li><strong>\\\\<\/strong> (Backslash) &#8211;\u00a0We use it to display the backslash character.<\/li>\n<li><strong>\\\u2019<\/strong> (Apostrophe or single quotation mark) &#8211;\u00a0We use it to display the single-quotation mark.<\/li>\n<li><strong>\\\u201d<\/strong> (Double quotation mark)-\u00a0We use it to display the double-quotation mark.<\/li>\n<li><strong>\\0<\/strong> (Null character) &#8211;\u00a0We use it to represent the termination of the string.<\/li>\n<li><strong>\\?<\/strong> (Question mark) &#8211;\u00a0We use it to display the question mark. (?)<\/li>\n<li><strong>\\nnn<\/strong> (Octal number)-\u00a0We use it to represent an octal number.<\/li>\n<li><strong>\\xhh<\/strong> (Hexadecimal number) &#8211;\u00a0We use it to represent a hexadecimal number.<\/li>\n<li><strong>\\v<\/strong> (Vertical tab)<\/li>\n<li><strong>\\b<\/strong> (Backspace)<\/li>\n<li><strong>\\e<\/strong> (Escape character)<\/li>\n<li><strong>\\f<\/strong> (Form Feed page break)<\/li>\n<\/ol>\n<p><em><strong>Get the Samurai Technique to<a href=\"https:\/\/data-flair.training\/blogs\/arrays-in-c\/\"> Learn Arrays in C<\/a><\/strong><\/em><\/p>\n<p><strong>Here is a code in C that illustrates the commonly used escape sequences in C:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#include&lt;stdio.h&gt;\r\nint main()\r\n{\r\n\/* To illustrate the use of \\n escape sequence *\/\r\n\r\nprintf(\"Welcome\\v\");\r\nprintf(\"to\\n\");\r\nprintf(\"DataFlair\\v\");\r\nprintf(\"tutorials!\\n\");\r\n\r\n\/* To illustrate the use of \\n escape sequence *\/\r\n\r\nprintf(\"Welcome\\tto\\tDataFlair\\ttutorials!\");\r\n\r\n\/* To illustrate the use of \\v escape sequence *\/\r\n\r\nprintf(\"Welcome\\vto\\vDataFlair\\vtutorials!\");\r\nreturn 0;\r\n}<\/pre>\n<p><strong>Code on Screen-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/escape-sequences-in-C-with-example.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-57617 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/escape-sequences-in-C-with-example.jpg\" alt=\"Escape sequences in C\" width=\"1301\" height=\"666\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/escape-sequences-in-C-with-example.jpg 1301w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/escape-sequences-in-C-with-example-150x77.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/escape-sequences-in-C-with-example-300x154.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/escape-sequences-in-C-with-example-768x393.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/escape-sequences-in-C-with-example-1024x524.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/escape-sequences-in-C-with-example-520x266.jpg 520w\" sizes=\"auto, (max-width: 1301px) 100vw, 1301px\" \/><\/a><\/p>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-escape-sequences-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-57618\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-escape-sequences-in-C.jpg\" alt=\"Output of escape sequences in C:\" width=\"1303\" height=\"696\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-escape-sequences-in-C.jpg 1303w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-escape-sequences-in-C-150x80.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-escape-sequences-in-C-300x160.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-escape-sequences-in-C-768x410.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-escape-sequences-in-C-1024x547.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-escape-sequences-in-C-520x278.jpg 520w\" sizes=\"auto, (max-width: 1303px) 100vw, 1303px\" \/><\/a><\/p>\n<h2>Summary<\/h2>\n<p>In this tutorial, we discussed the important escape sequences in C along with their significance in the C programming language. Further, we discussed the different types of escape sequences in detail and an illustrative program that helped us understand its use.<\/p>\n<p>After reading all this, I recommend you to check <a href=\"https:\/\/data-flair.training\/blogs\/strings-in-c-programming\/\"><strong>Strings in C Language<\/strong><\/a>.<\/p>\n<p><em>Don&#8217;t forget to provide us your precious review.<\/em> Leave your comments below, if you are having any further queries.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1520,&quot;href&quot;:&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Escape_sequences_in_C&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251209101635\\\/https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/Escape_sequences_in_C&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-11 01:55:24&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-16 06:18:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-19 07:00:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-24 01:38:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-27 20:46:40&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-31 12:37:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-03 14:30:06&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-01-06 16:18:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-09 16:32:07&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-13 06:52:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-17 03:04:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-20 16:42:02&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-24 18:37:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-28 04:47:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-31 07:54:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-03 15:19:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-06 17:16:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-09 23:01:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-13 19:06:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-17 03:40:00&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 18:49:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-24 07:48:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-27 14:31:33&quot;,&quot;http_code&quot;:429},{&quot;date&quot;:&quot;2026-03-03 00:35:00&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-06 19:41:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-10 08:08:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-15 15:53:36&quot;,&quot;http_code&quot;:429},{&quot;date&quot;:&quot;2026-03-20 19:02:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-25 12:43:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-29 06:15:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-01 11:07:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-05 06:35:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-08 15:24:58&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-15 13:02:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-20 01:01:33&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-23 01:15:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-26 10:11:50&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-30 00:48:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-05 10:53:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-08 11:45:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-12 03:58:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-16 12:23:21&quot;,&quot;http_code&quot;:429},{&quot;date&quot;:&quot;2026-05-19 18:19:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-23 14:08:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-27 08:19:27&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-31 04:37:46&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-03 10:14:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-08 12:19:32&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-12 18:49:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-15 23:27:37&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-19 01:23:16&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-19 01:23:16&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An Escape Sequence in C is a sequence of characters that doesn&#8217;t represent itself when used inside a character or a string literal but has its own specific function.\u00a0 So far we have learned&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":57625,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19488],"tags":[20020,20021,20022],"class_list":["post-57612","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","tag-c-escape-sequence","tag-types-of-escape-sequence","tag-what-is-escape-sequence-in-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>15 Types of Escape Sequence in C that Make your Coding Better - DataFlair<\/title>\n<meta name=\"description\" content=\"Escape Sequence in C is a sequence of characters that doesn&#039;t represent itself when used inside a character or a string literal, Learn different types of Escape Sequence in C with example\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"15 Types of Escape Sequence in C that Make your Coding Better - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Escape Sequence in C is a sequence of characters that doesn&#039;t represent itself when used inside a character or a string literal, Learn different types of Escape Sequence in C with example\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-04T06:41:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-03T12:10:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"15 Types of Escape Sequence in C that Make your Coding Better - DataFlair","description":"Escape Sequence in C is a sequence of characters that doesn't represent itself when used inside a character or a string literal, Learn different types of Escape Sequence in C with example","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/","og_locale":"en_US","og_type":"article","og_title":"15 Types of Escape Sequence in C that Make your Coding Better - DataFlair","og_description":"Escape Sequence in C is a sequence of characters that doesn't represent itself when used inside a character or a string literal, Learn different types of Escape Sequence in C with example","og_url":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-06-04T06:41:02+00:00","article_modified_time":"2019-07-03T12:10:34+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"15 Types of Escape Sequence in C that Make your Coding Better","datePublished":"2019-06-04T06:41:02+00:00","dateModified":"2019-07-03T12:10:34+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/"},"wordCount":632,"commentCount":5,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C.jpg","keywords":["C Escape Sequence","Types of Escape Sequence","What is Escape Sequence in C"],"articleSection":["C Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/","url":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/","name":"15 Types of Escape Sequence in C that Make your Coding Better - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C.jpg","datePublished":"2019-06-04T06:41:02+00:00","dateModified":"2019-07-03T12:10:34+00:00","description":"Escape Sequence in C is a sequence of characters that doesn't represent itself when used inside a character or a string literal, Learn different types of Escape Sequence in C with example","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Escape-Sequence-in-C.jpg","width":802,"height":420,"caption":"Escape Sequence in C Language"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/escape-sequence-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"C Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/c-programming\/"},{"@type":"ListItem","position":3,"name":"15 Types of Escape Sequence in C that Make your Coding Better"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/57612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=57612"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/57612\/revisions"}],"predecessor-version":[{"id":61986,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/57612\/revisions\/61986"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/57625"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=57612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=57612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=57612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}