can i write a c program without main()
function  in the  program?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Posted twice pls delete.
No there must have void main() for all programs.
This is already a standard.
Even I wrote already that this question was posted twice you give an answer. And the answer is wrong too.
Sure one can write a C programm without any main function. The only change is taht you can't execute such a program directly. But for linking, building libraries, unsing as an external module ... it can be used.
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

rbr is right. you can compile a C program without the main() function. however, you will defineitely give a linking error when you try to create an executible from it.

I have withdrawn my answer.
Sorry about that.

No. main() function in C or C++ defines Start and End of a proccessing in a program, Then a program whiteout it can't to start.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
i am also supporting to msivari.
Any C program must have to start with
main().With out main() we can't execute the program..
mohua_banerjeeAuthor Commented:
i want to close the answer as this is enough.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.