Warning: Undefined array key 1 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505
Warning: Undefined array key 2 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 557
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
{"id":2199,"date":"2020-09-13T17:57:10","date_gmt":"2020-09-13T17:57:10","guid":{"rendered":"http:\/\/www.yogindar.com\/news\/?p=2199"},"modified":"2020-09-13T17:57:10","modified_gmt":"2020-09-13T17:57:10","slug":"c-c-tokens-geeksforgeeks","status":"publish","type":"post","link":"http:\/\/blog.yogindar.org\/?p=2199","title":{"rendered":"C\/C++ Tokens – GeeksforGeeks"},"content":{"rendered":"In C\/C++ tokens are the smallest element of a program. Tokens can be split into the following<\/p>\n
1. Keywords
\nPredefined tokens in a programming language having fixed meaning.
\ne.g:- switch, case, int,return etc.<\/p>\n
C++ has 31 additional keywords
\nfew of the common ones used are
\nbool, class,static_cast,try, catch etc<\/p>\n
2. Identifiers
\nIdentifiers are used to name variables, labels etc. There are certain rules for the identifiers
\na. They can start only with a letter or underscore(_).
\nb. They must contain only digits, letters and underscore.
\nc. They cannot contain white space.
\nd. maximum up to 31 characters long.
\ne. white space not allowed.<\/p>\n
3. Constants
\nConstants refer to fixed values. e.g:- integer constants, floating point constants, character constants, octal or hexadecimal constants and string constants.
\nE.g:-
\nchar *p=”Yogi”;
\nint age=43;<\/p>\n
In the above examples “Yogi” and 43 are string and integer constants.<\/p>\n
4. Strings
\nThey are array of characters ended with null character(\\0)<\/p>\n
eg:- char test[20]=”Yogi”;<\/p>\n
5. Symbols
\nSymbols have special meaning.
\na. Brackets[]- used for array subscripts.
\nb. Paranthesis() – used for function calls and parameter passing.
\nc. Braces{} – Used for separating blocks of code. A variable defined inside the brace will have the scope within the brace.
\nd. comma, – separates statements and parameters.
\ne. asterisk * – Use to dereference a pointer.<\/p>\n
There are other set of symbols also used and each has its own meaning.<\/p>\n
6. Operators
\nOperators are symbols that are used to perform with operands to create a statement.
\nBased on the number of operands operator can act upon, operators can be classified as<\/p>\n
a. Unary operator – i++, i–;
\nb. Binary operators – Arithmetic, relational, logical, assignment, conditional, bitwise
\nc. Ternary operator – ?:<\/p>\n
Source: C\/C++ Tokens – GeeksforGeeks<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"In C\/C++ tokens are the smallest element of a program. Tokens can be split into the following 1. Keywords Predefined tokens in a programming language having fixed meaning. e.g:- switch, case, int,return etc. C++ has 31 additional keywords few of the common ones used are bool, class,static_cast,try, catch etc 2. Identifiers Identifiers are used to […]<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1337],"tags":[1333],"class_list":["post-2199","post","type-post","status-publish","format-standard","hentry","category-my-article","tag-programming-2"],"_links":{"self":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2199"}],"version-history":[{"count":1,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2199\/revisions"}],"predecessor-version":[{"id":2200,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2199\/revisions\/2200"}],"wp:attachment":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2199"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}