A character refers to the digit, alphabet or special symbol used to data representation.
Identifier is the name of a variable that is made up from combination of alphabets, digits and underscore.
Variable is a name of a memory location where we can store any data.
Local Variables are declared within the body of a function, and can only be used within the function only.
Void main(){ int a,b,c; } void func(){ int x,y,z; }
Here a,b,c are the local variable of void main() function and it can't be used within fun1() function. And x,y and z are local variable of fun1().
A global variable declaration looks normal, but is located outsidde any of the program's function. This is usually done at the beginning of the program file, but after preprocessor directives.
int a,b,c Void main(){ } void func1(){ }
Here a,b,c are globar variables, and these variable can be accessed (used) within a whole program.
int | float | double | long |
short | signed | unsigned | const |
if | else | switch | break |
default | do | while | for |
register | extern | static | struct |
typedef | enum | return | sizeof |
goto | union | auto | case |
void | char | continue | volatile |
C supports some escape sequence characters that used to do special tasks. These are also called as 'Baclslash characters'. Some of the escape sequence characters are as follow:
\n - New line
\b - Backslash
\t - Horizantal Tab
\f - Form feed