C had this particular feature for decades.
https://stackoverflow.com/questions/2192547/where-is-the-c-a...
auto foo = func_returning_int(); to my knowledge worked in C because 'auto' was the lifetime keyword - like 'register' - and the default type in C is 'int'.
That's why when you miss a definition in C++ the compiler warns you that there's no default int.