Please enable JavaScript.
Coggle requires JavaScript to display documents.
TOKENS IN C PROGRAMMING LANGUAGE - Coggle Diagram
TOKENS IN C PROGRAMMING LANGUAGE
KEYWORDS: These are reserved words with predefined meanings .
if, else, while
int, float, return
for, switch break
EXAMPLES:
OPERATORS: These are symbols that perform operations on operands.
Arithmetic: +, -, *, /, %
Relational: ==, !=, >, <, >=,<=
Logical: &&, ||, !
Assignment: +=, -=, *=, /=, %=, &=, |=, ^=, <<=, >>=, =
Bitwise : &, |, ^, >>, <<, ~
Increment/Decrement; ++, --
SPECIFIC SYMBOLS: The special characters and operators that have predefined meanings and are used to perform various operations.
(;): Terminates a statement.
({}): Define blocks of code (e.g., function bodies, loops, conditional statements).
(()): Used for function calls, parameter lists, type casting, and controlling order of operations in expressions.
([]): Used for declaring arrays and accessing array elements.
,): Separates items in a list (e.g., variable declarations, function arguments).
(:): Used in switch statements and conditional (ternary) operator.
CONSTANTS: These are the fixed values that do not change during the execution of a program.
Integer: 100, -26
Float: 3.14, 2,5e-3
Character: 'A', 'g'
Sting: "Hello"
STRINGS: It is essentially a sequence of characters stored in an array and terminated by a special character called the null character(0).
IDENTIFIERS: These are the names used to identify variables, functions, arrays, or other user defined elements in a program .It must start with a letter or underscore(_).