Question: Everytime I write a program in C it generates a error daying that the main function must be int(return type) even I declare it void.

Everytime I write a program in C it generates a error daying that the main function must be int(return type) even I declare it void. Although I don't have anything to do with returning any value. Can u explain why? I am a beginner so give a detailed explanation.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!