{"id":81055,"date":"2021-06-24T09:00:58","date_gmt":"2021-06-24T03:30:58","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=81055"},"modified":"2021-06-24T09:00:58","modified_gmt":"2021-06-24T03:30:58","slug":"tokens-and-keywords-in-c","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/","title":{"rendered":"Tokens and Keywords in C"},"content":{"rendered":"<p>Tokens are one of the most valuable and useful features of C. You can say that we can\u2019t make sentences without words and in C, we can\u2019t develop programs without tokens. It is like the building block of the C programming language.<\/p>\n<h3>What are Tokens in C?<\/h3>\n<p>Mainly considered as the smallest unit in C programs. It is one of the most conceptual features in C. Without the tokens, you can not develop a program. Compiler breaks the program into small units called tokens and further goes to the stages of compilation.<\/p>\n<h3>Character Set in C<\/h3>\n<p>The C programming language has its own character set. Character set is a combination of alphabets, letters and some special characters. It is divided into:-<\/p>\n<p>1. Letters<\/p>\n<p>2. Numbers<\/p>\n<p>3. Special Characters<\/p>\n<p>4. White Spaces<\/p>\n<h4>1. Alphabets:-<\/h4>\n<p>C programming language accepts uppercase and lowercase alphabets.<\/p>\n<p>a. Uppercase characters (A-Z)<\/p>\n<p>b. Lowercase characters (a-z)<\/p>\n<h4>2. Numbers:-<\/h4>\n<p>C programming language accepts all the digits from 0 to 9.<\/p>\n<h4>3. Special Characters:-<\/h4>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">, (comma)<\/span><\/td>\n<td><span style=\"font-weight: 400\">{ (opening curly bracket)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">. (period)<\/span><\/td>\n<td><span style=\"font-weight: 400\">} (closing curly bracket)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">; (semi-colon)<\/span><\/td>\n<td><span style=\"font-weight: 400\">[ (left bracket)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">: (colon)<\/span><\/td>\n<td><span style=\"font-weight: 400\">] (right bracket)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">? (question mark)<\/span><\/td>\n<td><span style=\"font-weight: 400\">( (opening left parenthesis)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8216; (apostrophe)<\/span><\/td>\n<td><span style=\"font-weight: 400\">) (closing right parenthesis)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8221; (double quotation mark)<\/span><\/td>\n<td><span style=\"font-weight: 400\">&amp; (ampersand)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">! (exclamation mark)<\/span><\/td>\n<td><span style=\"font-weight: 400\">^ (caret)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">|(vertical bar)<\/span><\/td>\n<td><span style=\"font-weight: 400\">+ (addition)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">\/ (forward slash)<\/span><\/td>\n<td><span style=\"font-weight: 400\">&#8211; (subtraction)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">\\ (backward slash)<\/span><\/td>\n<td><span style=\"font-weight: 400\">* (multiplication)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">~ (tilde)<\/span><\/td>\n<td><span style=\"font-weight: 400\">\/ (division)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">_ (underscore)<\/span><\/td>\n<td><span style=\"font-weight: 400\">&gt; (greater than or closing angle bracket)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">$ (dollar sign)<\/span><\/td>\n<td><span style=\"font-weight: 400\">&lt; (less than or opening angle bracket)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">% (percentage sign)<\/span><\/td>\n<td><span style=\"font-weight: 400\"># (hash sign)<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4. White Spaces:-<\/h4>\n<p>a. Blank space<\/p>\n<p>b. New line<\/p>\n<p>c. Carriage return<\/p>\n<p>d. Horizontal tab<\/p>\n<h3>Types of Tokens in C<\/h3>\n<p>In C programming language, tokens can be further classified into:-<\/p>\n<h4>1. Keywords in C:-<\/h4>\n<p>In C, keywords are predefined or reserved words which have their own importance. In total, there are 32 keywords in C. It has mixed meaning and it can not be altered or changed. Each keyword has its own functionality.<\/p>\n<p>Below is the table of keywords in C:-<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>auto<\/b><\/td>\n<td><b>double<\/b><\/td>\n<td><b>int<\/b><\/td>\n<td><b>struct<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>break<\/b><\/td>\n<td><b>else<\/b><\/td>\n<td><b>long<\/b><\/td>\n<td><b>switch<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>case<\/b><\/td>\n<td><b>enum<\/b><\/td>\n<td><b>register<\/b><\/td>\n<td><b>typedef<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>char<\/b><\/td>\n<td><b>extern<\/b><\/td>\n<td><b>return<\/b><\/td>\n<td><b>union<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>const<\/b><\/td>\n<td><b>short<\/b><\/td>\n<td><b>float<\/b><\/td>\n<td><b>unsigned<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>continue<\/b><\/td>\n<td><b>for<\/b><\/td>\n<td><b>signed<\/b><\/td>\n<td><b>void<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>default<\/b><\/td>\n<td><b>goto<\/b><\/td>\n<td><b>sizeof<\/b><\/td>\n<td><b>volatile<\/b><\/td>\n<\/tr>\n<tr>\n<td><b>do<\/b><\/td>\n<td><b>if<\/b><\/td>\n<td><b>static<\/b><\/td>\n<td><b>while<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Apart from these 32 keywords, there are some words which can not be used as a variable. Following is the list of them.<\/p>\n<p>1. asm<\/p>\n<p>2. bool<\/p>\n<p>3. catch<\/p>\n<p>4. class<\/p>\n<p>5. const_cast<\/p>\n<p>6. delete<\/p>\n<p>7. dynamic_cast<\/p>\n<p>8. explicit<\/p>\n<p>9. export<\/p>\n<p>10. false<\/p>\n<p>11. friend<\/p>\n<p>12. inline<\/p>\n<p>13. mutable<\/p>\n<p>14. namespace<\/p>\n<p>15. new<\/p>\n<p>16. operator<\/p>\n<p>17. private<\/p>\n<p>18. protected<\/p>\n<p>19. public<\/p>\n<p>20. reinterpret_cast<\/p>\n<p>21. static_cast<\/p>\n<p>22. template<\/p>\n<p>23. this<\/p>\n<p>24. throw<\/p>\n<p>25. true<\/p>\n<p>26. try<\/p>\n<p>27. typeid<\/p>\n<p>28. typename<\/p>\n<p>29. using<\/p>\n<p>30. virtual<\/p>\n<p>31. wchar_t<\/p>\n<p><b>Example 1:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\n\nint main() {\nint age=20; \/\/ using keyword int\nprintf(\"Welcome to TechVidvan Tutorials..\\n\\n\");\nif(age&gt;18){ \/\/ using keyword if and else\n  printf(\"Eligible to vote!\");\n}else{\n  printf(\"Not Eligible to vote!\");\n}\n}\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">\n<p>Welcome to TechVidvan Tutorials..Eligible to vote!<\/p>\n<\/div>\n<p><b>Example 2:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\n\nint main() {\nint number;\nwhile(1){ \/\/ while keyword\n  printf(\"Enter a number: \");\n  scanf(\"%d\",&amp;number);\n  if(number==0){\n    \tprintf(\"Do not put zero!\\n\");\n    \tcontinue; \/\/ continue keyword\n  }\n  else if(number&lt;0){\n    \tprintf(\"Loop Terminated!\\n\");\n    \tbreak;\n  }\n  printf(\"\\nWelcome to TechVidvan Tutorials..\\nThe Number is: %d\\n\",number);\n  break;\n}\nreturn 0;\n}\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Enter a number: 10<br \/>\nWelcome to TechVidvan Tutorials..<br \/>\nThe Number is: 10<\/div>\n<h4>2. Identifiers in C:-<\/h4>\n<p>In C, identifiers are user defined words. Mainly used for naming variables, functions, arrays, structures, etc. It can not be used as keywords. Below are the rules which you have to follow to construct identifiers:-<\/p>\n<p>a. Each identifier has to be a unique one.<\/p>\n<p>b. First character of the identifier should be an alphabet or underscore and then followed by any characters and digits.<\/p>\n<p>c. In the identifier, do not add any commas or blank space.<\/p>\n<p>d. Identifiers are case sensitive.<\/p>\n<p>e. Length of the identifier should not be more than 31 characters.<\/p>\n<p>f. Name of the identifier must be meaningful.<\/p>\n<p>g. An identifier should not start with numbers.<\/p>\n<p><b>Syntax:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">int amount;\ndouble totalbalance;\n<\/pre>\n<p>Below is the table that shows the valid use of identifiers:-<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Identifier Name<\/b><\/td>\n<td><b>Valid or Invalid<\/b><\/td>\n<td><b>Correction<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">_num<\/span><\/td>\n<td><span style=\"font-weight: 400\">valid<\/span><\/td>\n<td><span style=\"font-weight: 400\">No correction needed.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">student name<\/span><\/td>\n<td><span style=\"font-weight: 400\">invalid<\/span><\/td>\n<td><span style=\"font-weight: 400\">studentname<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">your.bill<\/span><\/td>\n<td><span style=\"font-weight: 400\">invaild<\/span><\/td>\n<td><span style=\"font-weight: 400\">your_bill<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">my_age<\/span><\/td>\n<td><span style=\"font-weight: 400\">valid<\/span><\/td>\n<td><span style=\"font-weight: 400\">No Correction needed.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3. Strings in C:-<\/h4>\n<p>In C, strings are an array of characters having null character \u2018\\0\u2019 at the end of the string. The size of the strings is the number of characters in the string. Strings are enclosed in double quotes(\u201c\u201d) and characters are enclosed in single quotes(\u2018\u2019).<\/p>\n<p><b>Syntax:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">char a[10]={'1','2','3'};\nchar b[]=\"TechVidvan\";\n\n<\/pre>\n<p><strong>Memory Diagram:-<\/strong><\/p>\n<table style=\"height: 101px\" width=\"556\">\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400\">T<\/span><\/td>\n<td><span style=\"font-weight: 400\">e<\/span><\/td>\n<td><span style=\"font-weight: 400\">c<\/span><\/td>\n<td><span style=\"font-weight: 400\">h<\/span><\/td>\n<td><span style=\"font-weight: 400\">V<\/span><\/td>\n<td><span style=\"font-weight: 400\">i<\/span><\/td>\n<td><span style=\"font-weight: 400\">d<\/span><\/td>\n<td><span style=\"font-weight: 400\">v<\/span><\/td>\n<td><span style=\"font-weight: 400\">a<\/span><\/td>\n<td><span style=\"font-weight: 400\">n<\/span><\/td>\n<td><span style=\"font-weight: 400\">\\0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>Example:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\n\nint main() {\nchar s[100]=\"Welcome To TechVidvan Tutorials..\\n\";\nprintf(\"%s\",s);\nreturn 0;\n}\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Welcome To TechVidvan Tutorials..<\/div>\n<h4>4. Operators in C:-<\/h4>\n<p>Mainly used to perform operations on provided data. With the help of the operators, you can perform mathematical operations. It is one of the most useful and efficient features.<\/p>\n<p>Further classified into:-<\/p>\n<p>Unary Operator:-<br \/>\nMainly used with a single operand. For example, increment(++), decrement(&#8211;), sizeof(), (type)* etc.<\/p>\n<h5>a. Binary Operator in C<\/h5>\n<p>Binary operator is applied between two operands. Following is the list of binary operators in C:-<\/p>\n<p>1. Arithmetic Operator<\/p>\n<p>2. Relational Operator<\/p>\n<p>3. Logical Operator<\/p>\n<p>4. Misc Operators<\/p>\n<p>5. Bitwise Operators<\/p>\n<p>6. Shift Operators<\/p>\n<p>7. Conditional Operators<\/p>\n<p>8. Assignment Operators<\/p>\n<h5>b. Constants in C<\/h5>\n<p>From the name, you know that the main purpose of this is to make the value fix. And you cannot change the constant value. In two ways, you can declare a constant:-<\/p>\n<p>1. Using const keyword<\/p>\n<p>2. Using #define pre-processor<\/p>\n<p><b>Syntax:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const\n<\/pre>\n<h5>Using const keyword:-<\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">const variableName;<\/pre>\n<h5>Using #define keyword:-<\/h5>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#define NAME value;<\/pre>\n<h4>Types of constants in C:-<\/h4>\n<table style=\"height: 418px\" width=\"465\">\n<tbody>\n<tr>\n<td><b>Constant<\/b><\/td>\n<td><b>Example<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Integer Constant<\/span><\/td>\n<td><span style=\"font-weight: 400\">10, 11, 34 etc.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Floating-point Constant<\/span><\/td>\n<td><span style=\"font-weight: 400\">45.6, 46.2, 56.2 etc.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Octal Constant<\/span><\/td>\n<td><span style=\"font-weight: 400\">011, 088, 022 etc.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Hexadecimal Constant<\/span><\/td>\n<td><span style=\"font-weight: 400\">0x1a, 0x4b, 0x6b etc.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">Character Constant<\/span><\/td>\n<td><span style=\"font-weight: 400\">\u2018A\u2019, \u2019b\u2019, \u2019c\u2019 etc.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">String Constant<\/span><\/td>\n<td><span style=\"font-weight: 400\">\u201cC\u201d, \u201cTechVidvan\u201d etc.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Special Symbols in C<\/h3>\n<p>Apart from the above discussed token, some special symbols are used in C. These symbols have special meaning and they can\u2019t be used for any other purposes.<\/p>\n<p><strong>1. Square Brackets []:<\/strong>&#8211; Mainly used for single and multi-dimensional arrays.<\/p>\n<p><strong>2. Simple Brackets ()<\/strong>:- Used for function declaration and function calling like printf(), scanf() etc.<\/p>\n<p><strong>3. Curly Braces {}<\/strong>:- Used for opening and closing the codes and the loops.<\/p>\n<p><strong>4. Comma (,)<\/strong>:- Used for separating more than one statement.<\/p>\n<p><strong>5. Hash and pre-processor (#)<\/strong>:- It denotes that we are using the header file.<\/p>\n<p><strong>6. Asterisk (*)<\/strong>:- Mainly used for pointer variables and also used for multiplication.<\/p>\n<p><strong>7. Tilde (~)<\/strong>:- Mainly used for destructing the memory.<\/p>\n<p><strong>8. Period (.)<\/strong>:- Mainly used for accessing a member of a structure or a union.<\/p>\n<p><b>Example of the implementation of tokens in C:-<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\n\nint main() {\nint num;\nprintf(\"Welcome to TechVidvan Tutorials..\\n\\n\");\nprintf(\"Enter numbers between 1 to 3: \\n\");\nscanf(\"%d\",&amp;num);\nswitch(num){\n  case 1:\n  printf(\"You entered 1!!\");\n  break;\n  case 2:\n  printf(\"You entered 2!!\");\n  break;\n  case 3:\n  printf(\"You entered 3!!\");\n  break;\n  default:\n  printf(\"Please, enter valid number!\\n\");\n}\nreturn 0;\n}\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Welcome to TechVidvan Tutorials..Enter numbers between 1 to 3: 1<br \/>\nYou entered 1!!<\/div>\n<p><b>Example of function in C<\/b><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#include&lt;stdio.h&gt;\n\nint main() {\nint i=5;\nint areaSquare(int a){\n  return a*a;\n}\nint area = areaSquare(i);\nprintf(\"Square Area is = %d\\n\",area);\nreturn 0;\n}\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">Square Area is = 25<\/div>\n<h3>Summary<\/h3>\n<p>A token is the smallest unit in programs. Keywords are predefined or reserved words that have their own importance. The main purpose of constant is to make the value fix.\u00a0In C, identifiers are user defined words. Mainly used for naming variables, functions, arrays, structures etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tokens are one of the most valuable and useful features of C. You can say that we can\u2019t make sentences without words and in C, we can\u2019t develop programs without tokens. It is like&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":81248,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3510],"tags":[3408,3624],"class_list":["post-81055","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","tag-keywords-in-c","tag-tokens-in-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tokens and Keywords in C - TechVidvan<\/title>\n<meta name=\"description\" content=\"Learn what are tokens and keywords in C with Syntax and Examples. Keywords are predefined or reserved words that have their own importance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tokens and Keywords in C - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Learn what are tokens and keywords in C with Syntax and Examples. Keywords are predefined or reserved words that have their own importance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-24T03:30:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Tokens-and-Keywords-in-C.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tokens and Keywords in C - TechVidvan","description":"Learn what are tokens and keywords in C with Syntax and Examples. Keywords are predefined or reserved words that have their own importance.","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:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/","og_locale":"en_US","og_type":"article","og_title":"Tokens and Keywords in C - TechVidvan","og_description":"Learn what are tokens and keywords in C with Syntax and Examples. Keywords are predefined or reserved words that have their own importance.","og_url":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-06-24T03:30:58+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Tokens-and-Keywords-in-C.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Tokens and Keywords in C","datePublished":"2021-06-24T03:30:58+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/"},"wordCount":1031,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Tokens-and-Keywords-in-C.jpg","keywords":["Keywords in C","tokens in c++"],"articleSection":["C Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/","url":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/","name":"Tokens and Keywords in C - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Tokens-and-Keywords-in-C.jpg","datePublished":"2021-06-24T03:30:58+00:00","description":"Learn what are tokens and keywords in C with Syntax and Examples. Keywords are predefined or reserved words that have their own importance.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Tokens-and-Keywords-in-C.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/06\/Tokens-and-Keywords-in-C.jpg","width":1200,"height":628,"caption":"Tokens and Keywords in C"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/tokens-and-keywords-in-c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Tokens and Keywords in C"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/81055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=81055"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/81055\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/81248"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=81055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=81055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=81055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}