Does C++ allow default return types for functions?

It’s ill-formed in C++. Meaning that it doesn’t compile with a standard conforming compiler. Paragraph 7.1.5/4 in Annex C of the Standard explains the change “Banning implicit int”.

Leave a Comment