I have this doubt why a .c file cannot be included any specific reason for that? There are no advantages with it?
I have this doubt why a .c file cannot be included any specific reason for that? There are no advantages with it?
I considered it a stylistic type rule.
There is much better reasons to use goto than to include .c files.
But, I have seen good code include .cpp files to work around compiler/OS support issues.
I myself include .c files for testing purposes; but, I am testing non C standard code using an gcc compiler to display warning and errors that are NOT caught by the production C-like compiler.
Tim S.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
There are generally no advantages, and several disadvantages. In most cases, it is a much better idea to use header files.