Hi I am Gaytri i would like to know:-
why we use main() function in C. And what is advantages of main() function.

You can read about the main() function here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.