C program without main function
Can you write a c program without using main function?
We can write a c program without using main function. We can compile it but we cannot execute a program without a main function. Since in C execution of any program start from main function. Examples of c program without a main is all the c library functions. Function printf is an example of library function which has been written and complied without using main function. To use or run such functions we write other program using main function and call those functions.