Why are function declaration mandatory in C++ and not in C?

So one of my previous exams had this question, and till now I've been reading that you don't need a declaration in any of the languages?

Which is right? Will C++ give an error if there's no declaration, or will it run?

13
задан Achint 3 May 2011 в 23:21
поделиться