C/Functions
Expert: Zlatko - 5/31/2011
QuestionHi though main() is userdefined function if we shouldn't spell correctly why compiler generates an error?
AnswerHello 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