/*constant, variable and data types*/
 |
| sk |
* CHARACTER SET:- The character from character cell are combined to form constant, variables and keywords. In is set of character supported by 'c' language. Character can be any alphabet, digit or special symbol.
- Alphabets:- A-Z or a-z.
- Digits:- 0-9.
Special symbol:- +,-,&,*,/,%,etc.
* ALPHABETS:- 'C' character set supports A to Z and a to z. Not that 'k' is 'K' sensitive language in which a=!A. Total 26+26 alphabets can be used in 'C' program.
* DIGITS:- 'C' character set supports digit from 0to9. Any combination of digit from this range is valid in 'C' program.
* SPECIAL SYMBOLS:- In addition to alphabets and digiys 'C' support many special character of keywords. many of special characters have special meaning in 'C' language. Total number of special character is 30, in addition to this 'C' language supports while space in character set. When you put while space between two keywords, it will be transported to turbo 'C' compiler but if you use it with in a keywords it will generate a error.
example:- prin tf("");
* 'C' TOKENS:- In languages like english, individual words and punctuation and make are token. In 'C' language small individual unit are called 'C' tokens. There are six types of C tokens, all programs are made by using this.
 |
| sk |
* keywords:- Every word in C program will be a keyword a identifier. Every language have set of characters, whose meaning is already defined and understand to the compiler. The number of this set are reserved words that can be used in a pre defined way are called keywords. The variable name defined in C program cannot be taken from set of keywords. C compiler has 40 keywords but we use 32 in C language and 8 of them are used in low language program. All keywords must be written in lower case:-
- auto
- break
- case
- char
- const
- continue
- default
- do
else etc.....
* IDENTIFIERS:- Name given to variables, function, structure, and array, they are called so as they identify particular part of program. They are made of alphabets or digits (lower or upper case) with any combination of digit.
* CONSTANTS:- A constant refers to a value that do not change during execution of the program. It is similar to mathematical constant. like 'π' whose value is always assumed to be 22/7 or 3.14 whenever we need a quantity that should be static and a like throughout a program.(
next blog)
* VARIABLES:- It ia a name given to a temporary memory location that has been used to store any value. It is clear from the name of that the value stored in a variable can be changed at any instant of the time during a program execution. It is needed when we want to store the input of user for calculation or you want to store a piece of output generated in the mid of calculation and to store the final output of the program.
*DATA TYPES:- Various quantities such as constant, variable etc, occur in C program must have a type associated with them. They can be one and only one type associated with an entity.
Data type are classified into primary (fundamental) data type and derived data type (secondary)and user defined data type.(
next blog)