answersLogoWhite

0

What is meant by tokens in C?

User Avatar

Anonymous

11y ago
Updated: 8/19/2019

In a C program the smallest individual unit is called token and C language consists of following tokens:-

1> Identifiers: These are user defined name used to represent program elements such as function names, variables, structures etc.

2> Keywords: These are reserved words which are initially defined in the C compiler.

3> Constants: Constants are fixed values which do not change during program execution.

4> String Literals: It is a sequence of characters enclosed in double quotation marks (" ").

5> Operators: They represent an operation on C variables.

Etc.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What is main by c tokens?

smallest individual units in a c program is called tokens.


What are the operators in c tokens?

All arithmetic, logical operators are operators in c tokens. As: +, - , ++, --, %, &&, &, >>, << etc.


What has the author Cecil C Tannahill written?

Cecil C. Tannahill has written: 'Trade tokens of Saskatchewan and their history' -- subject(s): Saskatchewan, Tokens, Money


What are tokens in c language?

in c program the smallest individual unit is called c-token


What is meant by token?

A token in C, and in other languages as well, is the largest set of consecutive characters that matches the rules for construction of a parse-able unit of the language.For instance, in the statement a = b+c; the tokens are a, =, b, +, c, and ;.The reason I say "largest set" is to define what happens if more than one rule matches.For instance, in the statement a = b+++c; the tokens are a, =, b, ++, +, c, and ;, and not a, =, b, +, ++, c, and ;. If you mean the other way around, you need to use parentheses.


What has the author C W Stainsfield written?

C. W. Stainsfield has written: 'Descriptive catalogue of Australian tradesmen's tokens' -- subject(s): Accessible book, Tokens


What are the 6 types of c tokens?

A Token is the basic and the smallest unit of a programThere are 6 types of tokens in 'C'. They are:1) Keywords2) Identifiers3) Constants4) Strings5) Special symbols6) Operators


What is the token in c plus plus language?

A token in C++, and in many other computer languages as well, is the largest set of characters in the source code that meets the criteria of a single language element. Often, tokens are separated by white space, but if the context is clear, this is not required. The expression a=b+c, for instance, contains 5 tokens, a, =, b, +, and c. The expression a = b + c is identical in meaning. The "largest set" rule can be shown with the example a=b+++c. The tokens are a, =, b, ++, +, and c. This expression means to add b and c, store the result in a, and then increment b.


How many tokens are present in C?

There are 6 types of Tokens in C which are as follows:- 1. Keyword 2. Identifier 3. Constants/Literals 4. Variable 5. Operator 6. Punctuator


What has the author William C Wells written?

William C. Wells has written: 'Seventeenth Century tokens of Northamptonshire'


What has the author Alan C Henderson written?

Alan C. Henderson has written: 'Hop tokens of Kent and Sussex & their issuers'


What would happen if you collect all the bratz tokens?

nothing, i collected all the tokens and i went back to kirstee and nothing happened. i think by finishing the game, it really meant u finished the game. but i wouldn't giv up if i were u. just find 100 tokens and see what happens.