You are here:

C/Functions

Advertisement


Question
Hi though main() is userdefined function if we shouldn't spell correctly why compiler generates an error?

Answer
Hello Rushi

Your linker expects a main function because that is the entry point of your program. If you misspell it, the linker will not find one and will give an error. It is the probably the linker, and not the compiler, which is giving the error. If it is really a compiler error, then I would need to see the code and the error to help you with it.

Best regards
Zlatko

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Zlatko

Expertise

No longer taking questions.

Experience

No longer taking questions.

Education/Credentials
No longer taking questions.

©2012 About.com, a part of The New York Times Company. All rights reserved.