When you write an English sentence, you use words, punctuation marks, and spaces. Similarly, when you write a program in the C language, you use specific basic elements. The compiler breaks down your entire program into the smallest individual units, which are called Tokens.
There are exactly 32 standard keywords defined in the original ANSI C programming language.
A Token is the smallest individual unit in a C program. It is the basic building block of the language. The C compiler cannot break down a token any further.
Every single character or word you type in a C program falls into one of these six categories:
int, return, if, while). You cannot use them as variable names.main, age, total_sum).10, 3.14, 'A')."Hello World").[ ], { }, ,, ;, #).+, -, =, &&).Look at this simple line of code: int sum = 10;
The compiler breaks it down into 5 tokens:
int (Keyword)sum (Identifier)= (Operator)10 (Constant); (Special Symbol)No. Blank spaces, tabs, and newlines are known as 'white spaces'. The compiler uses them to separate tokens from each other, but the spaces themselves are ignored during compilation.
High Level Language and Hybrid Computer
Learn the definitions of High Level Language (like Python, Java) and Hybrid Computers. Basic concepts for computer science students.
How Many Rows and Columns are there in MS Excel?
Find out the exact maximum number of rows and columns in Microsoft Excel. Learn about the 1 million row limit and how the columns are named from A to XFD.
What is the Full Form of IIS in Computers?
Learn the full form of IIS in Computer Science. Understand how Microsoft's Internet Information Services works to host massive websites and web applications.
Impact Printer and Non-Impact Printer
Learn the difference between impact printers (like dot matrix) and non-impact printers (like inkjet and laser). Types, examples, and key differences explained.
What is India's First Supercomputer?
Learn about PARAM 8000, India's very first supercomputer. Discover the history of C-DAC, Vijay Bhatkar, and how India built its own supercomputer in 1991.
Turn this guide into revision flashcards, a practice exam, or an AI-generated podcast โ free, no signup required.