Is main() a pre-defined function in C? [duplicate]
问题 This question already has answers here : Closed 9 years ago . Possible Duplicate: main() in C, C++, Java, C# I'm new to programming in general, and C in particular. Every example I've looked at has a "main" function - is this pre-defined in some way, such that the name takes on a special meaning to the compiler or runtime... or is it merely a common idiom among C programmers (like using "foo" and "bar" for arbitrary variable names). 回答1: No, you need to define main in your program. Since it's