Is there any way to write a C program without a main function? If so, how can that be achieved?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
C defines the entry point in a hosted environment to be
main. In a “freestanding” environment, however, the entry point can have some other name. That’s about the only latitude the language (at least officially) allows in that particular respect.