answersLogoWhite

0

If we save our program with .c extention before compiling it, the compiler with automatically include the header files. for eg-

First we save our program with sum.c and then compile it. It will not show any error.

1. Compilation needs header files, not execution.

2. Very small example programs can be written without using any header file, eg:

/* mini.c */

extern void (const char *puts);

int main (void)

{

puts ("Hello, world");

return 0;

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can you write a program without main in c?

Certainly, you can write a program without main, but you cannot build an executable from it, if that is okay with you.


Can a C program be written without main METHOD?

Every program requires an entry point. Main() provides the entry point in C.


How you create c program without semicolon?

int main () {}


Is c program works without main function?

yes a C program can work without a main() function. Though its not the normal C code that you would be writing on ur gcc or turbo C compiler. for example Linux Source code ... does not have a main() function : for details u can visit: http://samarthonweb.blogspot.com/2009/08/c-programe-with-no-main-function.html


How do you get Linux program error in void main in c?

This question cannot be answered without seeing the source program.


How do you display semi colon without using semi colon in a c program?

main() { if(printf("%c",59)) }


How do you write a programm in c plus plus without using function main?

I don't think its possible. Every C++ program must at least have the main function.


Can a C program be written without main?

Yes. Windows GUI application are the tipical examples, their execution starts with 'WinMain', not 'main'


Write a program in C without any functions?

It is not possible. In C, any program must have at least one function to be able to compile and execute properly: the function main()


What must every c program have?

A main function must be present in every C program.


Can we run a C program without main?

You might, with the help of your linker program (renaming external symbols and stuff like that), but it would be absolutely pointless.


Where do we write main function in a c program?

Into the source program.