Comment on The Cscript Style Guide – CScript is the standard CComments−irishcoffee7moThis is interesting, but I wouldn't say it is valid C. main() doesn't know about greet(auto s) and wouldn't be able to call it in valid C89, right?−kevin_thibedeau7moIt's valid K&R since everything defaults to int. The linker will match the symbols sans prototype. That wasn't obsoleted until C23.−irishcoffee7moTIL, thank you! (How embarrassing haha)−oguz-ismail27moIt is valid C89. greet is automatically declared as int greet(); at call site.
Comments
This is interesting, but I wouldn't say it is valid C. main() doesn't know about greet(auto s) and wouldn't be able to call it in valid C89, right?
It's valid K&R since everything defaults to int. The linker will match the symbols sans prototype. That wasn't obsoleted until C23.
TIL, thank you! (How embarrassing haha)
It is valid C89. greet is automatically declared as
at call site.