I am not going to tell you who is the creator of this language this is worthless but what he created is very important...
So let start the C...
A language like to make things...Think about a dish we eat it with taking its every taste..have we ever think how it is made...for those who think that it is the right place to know...Software is likely to be same. Now as we know we need something to create any thing like furnitures we need hammer, pins etc.. like that when we are going to create a program we need some basic raw things. In c they are tokens which are the every independent smallest part of a code..
There are only few kinds of Tokens namely..
1. Literals
2. Identifiers
3. Punctuations
4. Keywords
5. Operators
To remind it I form a short name for them as LIPKO
These tokens are the bricks for the wall. So we have to know details about these tokens.
Literals:
Literals are the constant (Whose value can't be changed) values. Let see it in details-
First we think how many types of data...for now we divide data in two types
1. Numbers
2. Characters.
So the numbers like 1,2,3,5.8,...any type of numbers are numeric literals and like single characters or words are character literals like 'a','b','c',"we",etc.
Identifiers:
Identifiers are the characters or group of characters by which we can make identity of a thing.
When we store data in computer memory we don't know where actually it is stored by the computer mean the physical address of the item..so to access or use the item we locally name that location.
This name is the identifier. we use it to declare variables (whose value can be changed when needed) to store constant values by default.
Punctuations:
Punctuations are the special characters like ; are used to do different task like statement terminator..
Keywords:
Keywords are the words whose meanings are predefined to the compiler of the language. In C there is many keywords presents usually 32 keywords present in C. We can't use them in another meaning which they carry.
Usually in Turbo C , words which takes white colour by default are the keywords. Some examples are given below-
auto break char double enum float goto and so on....
Operators:
Operators are the special symbols which works on some operands and produce some results.
Basically there are 8 types of operators. We can categorize operators in two way-
1. Operators Basis On Their Work.
2. Operators Basis On Operand Used.
Below figure will make you understand this-
We will discus the operators one by one later..
So let start the C...
A language like to make things...Think about a dish we eat it with taking its every taste..have we ever think how it is made...for those who think that it is the right place to know...Software is likely to be same. Now as we know we need something to create any thing like furnitures we need hammer, pins etc.. like that when we are going to create a program we need some basic raw things. In c they are tokens which are the every independent smallest part of a code..
There are only few kinds of Tokens namely..
1. Literals
2. Identifiers
3. Punctuations
4. Keywords
5. Operators
To remind it I form a short name for them as LIPKO
These tokens are the bricks for the wall. So we have to know details about these tokens.
Literals:
Literals are the constant (Whose value can't be changed) values. Let see it in details-
First we think how many types of data...for now we divide data in two types
1. Numbers
2. Characters.
So the numbers like 1,2,3,5.8,...any type of numbers are numeric literals and like single characters or words are character literals like 'a','b','c',"we",etc.
Identifiers:
Identifiers are the characters or group of characters by which we can make identity of a thing.
When we store data in computer memory we don't know where actually it is stored by the computer mean the physical address of the item..so to access or use the item we locally name that location.
This name is the identifier. we use it to declare variables (whose value can be changed when needed) to store constant values by default.
Punctuations:
Punctuations are the special characters like ; are used to do different task like statement terminator..
Keywords:
Keywords are the words whose meanings are predefined to the compiler of the language. In C there is many keywords presents usually 32 keywords present in C. We can't use them in another meaning which they carry.
Usually in Turbo C , words which takes white colour by default are the keywords. Some examples are given below-
auto break char double enum float goto and so on....
Operators:
Operators are the special symbols which works on some operands and produce some results.
Basically there are 8 types of operators. We can categorize operators in two way-
1. Operators Basis On Their Work.
2. Operators Basis On Operand Used.
Below figure will make you understand this-
We will discus the operators one by one later..
No comments:
Post a Comment