they are mainly 3 types of variables
1)local variables //by default it will assign as a garbage value.this is present in with in the function.
2) global variables //by default it will assign as a zero.it will access entire the program.
3)Static variables //this is also similar to local variables but the difference is this initialize every time