Into the source program.
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()
A main function must be present in every C program.
if you do not used main function in c program when errors are accrued
int main() { // Call the printf function printf("This is a function call!\n"); return 0; }
Every C plus plus program that is a main program must have the function 'main'.
Every C program has a main() function.
That's up to you, but the execution of the program begins with function main.
Certainly, you can write a program without main, but you cannot build an executable from it, if that is okay with you.
Because if you donot use main function in c program, the compiler willnot execute the program.C compiler starts execution from main function itself.
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") }
Every C program must have a function, named main(), which is where the program starts execution. If there is no function main(), the computer does not know where to start running the program. The function main() must also do something; if it is just empty, some smarter compilers will note that there is nothing for the program to do, and will give this sort of error message to indicate that you forgot to tell the program what to do.