c tokens concepts explanation .

First program in c - language 
Basic & first program in c -language 
Program: 
#include<stdio.h> 
Main()
{
Printf("hello world");
Retun 0; 
Getch(); 

 Program explanation
 #include<stdio.h> - it's a predefined processor . This processor already reserved in c libraries . Here <stdio.h> (means standard input and output.header file) 
Note: so many members written like studio.h .it's not studio it's stdio and this also predefined in c-library 

Main () - main() function is a heart of the program either its small or big problem . Main function is not written in program . That program is not excuted 

Printf() - if you display any word content in output . For the purpose printf keyword is used . note as per mention in above program like that you can write your content .

Return 0- return is using for end of the program . We can write code after return 0 that part of code is not excuted . Only write code before return 0 

Getch() - getch() is using for to hold the console screen . Some times we skip getch () in that time program is not excuted successfully in console screen 
 C-tokens

Hello! learners welcome back our next topic c-tokens . I will explain one concept then after you get idea about c-tokens , why how we decide house ...? . yeah we will decide why becuase house have a walls , doors , windows etc . like c- language also have  c- tokens . coming to the concept 

      c-tokens are classified into six types  they are:

1.keywords

2.special characters

3.datatypes 

4.Identifiers

5.strings

6.constants

1.keywords:

              c-language have some reserved keyword/ pre-defined words. in c-languages keywords have 32 keywords . note: some times interviwers ask this basic questions like how many keywords in c language like that . so Remeber it guys ,c language have only 32 keywords . and one more thing each keyword have own functionality . 32 keywords are listed below just look it , that 32 keywords we will use in further c-language programs 

1.printf

2.scanf

3.if

4.else

5.break

6.int

7.float

8.char

9.enum

10.struct

11.long

12.double

13.short

14.for

14.do

15.while

16.volatile

17.auto

18.continue

19.extern

20.goto

21.signed

22.unsigned

23.return

24.size of

25.static

26.typedef

27.switch

28.register

29.default

30.union

31.const

32.void

thats all 32 keywords in c- languages , if you not understand that keywords nothing to worry we will learn in further topics in detail

special  characters:

1. dollar =$

2.exclamation mark=!

3.caret= ^

4.add +, sub - ,mult *, divi /, modular % 

5.ampercent = &

6.equal to =("=")

7.left brace = {

8. right brace  =}

9.left parenthesis = (

10.right parenthesis = ) 

11.qutotation marks = "

12.semicolon = ;

13.slash = ? 

 its basic special characters guys ,in c- language mostly used this special characters. 

explanation : mathmatics signs are used only mathmatical calculations ,left and right braces are used in front of main function , printf and scanf . parenthasis are used in programing starting and ending program . and semicolons are used every statements after completion we can us this special characters. and next topic data types 

Data types 

data types defined as dat storage format that a variable can store a data to perform specific operation . data types are used to defined a variable before to use in programme 

 * size of a variable ,constant and array are determined by the data type.

*data types are classified into four Data types: 

1. Basic data type

2.Enumration data type

3. Derived data type

4.Void dat type 

here data is classified into 2 parts 

1. integer       2.float 

* integer is classified into 3 parts 

1. 1 Byte -(char)~ sing char -unsinged char 

2. 2 Byte -( int)~ sign int - unsignint 

3.4 byte-(long int)~sign int int ~unsinged long int 

* float is classified into 3 parts 

1. 4 byte (float) 

2.8 byte (double) 

3.10 byte ( long double)



primary/basic Data type: 

Int , char, float & double These are basic or primary data types 

~ Integer : Integer are the Numbers with a Range of variables supported by a particular machine 

* it was defined INT 

* Integer is two Byte " range " is -32.768 to + 32.767

syntax : 

#include<stdio.h> 

main()

{

int a  

return  0;

getch(); 

}   

~ charecter(char) : character memory space is 1 - Byte 

* The range is -128 to + 127 

* It was denoted by char 

syntax :

#include<stdio.h>

main()

{

char a

~ float :

float point numbers are stored with in six digits we can Defined with a Keyword float. Then The accuracy is not sufficient then we are going to use double. double gives precession of 14 digits

syntax: 

#include<stdio.h>

main()

{

float a 

return 0;

getch();

 *void data type: 

void is a Empty Data type has no value. This can be used in fuctions and pointers

#include<stdo.h>

voidmain()

{

-----

-----

return 0;

getch ();

*Enumration Data type :

Enumuration Data data type consists of named Integer , constants of a List . It starts with zero by defualt and value is increased by "1". sequencial identier list 

~ we can denote with Enum keyword 

syntax: 

#include<stdio.h>

main()

{

enum star code lerans { c,html, java} 

 thats all about data types . tap next button for learn operaters , strings and constants