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
no
You cannot create a program with the extension .exe without the function main. You can create a dll which does not even use main. WinApi uses another main function but it's still a main function. Main function is entry point for your program, no entry point no program.Write a progrmme in c with out using a main function. #include #define decode(s,t,u,m,p,e,d)m##s##u##t #define begin decode(a,n,i,m,a,t,e) int begin() { printf("HELLO") }
not possible dude
The main function is the entry point into a program. When the Operating System launches the program the main function gets executed.
I don't think its possible. Every C++ program must at least have the main function.
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()
The main function. Every program must have a main function and it must be declared static.
A main function must be present in every C program.
Into the source program.
With special linker-options (platform-dependent) you might be able to create a program that has function 'Start' (for example), instead of 'main', but I don't see any reason in it.
No, for example it cannot be nested in:- another function definition- type-definition- variable-definitionBut, if you mean calling function main, you can do that without limits (not common practice, though).
if you do not used main function in c program when errors are accrued