Is there any option available to include header file while compiling?
For Ex: i don't want to write "#include<stdio.h>" in my .c file. but while compiling i want to include it. (like, $: cc 1.c -option stdio.h) can it be done?
You can use -i option on command line durning compilation.
Try something gcc -o hello 1.c stdio.h
(you may need to provide the include path i.e. -I)
I have not tested but let me know if it works or not.