RE: A Question About C 10-18-2015, 05:23 AM
#12
(10-18-2015, 05:10 AM)0xDEAD10CC Wrote: This doesn't mean that others will be using other compilers to port your code to another platform if you ever write open source code, nor does it mean that your compiler will always do this for you and not comply with the ISO C standard until the end of time. My point is 100% valid.
There are more than just a single reason why it is a warning.
Thank-you. Your reply really helped me, and I will be explicitly declaring my function return types to be "int" instead of no specified return type. However, I have been reading online about "void" inside of parentheses vs. an empty parameter list, and still don't really get it. What are all of the differences between having "void" inside the function parentheses and having a blank parameters list? Also, is the effect different for both function declarations and definitions? Thanks.
![[Image: WbEjjLG.png]](http://i.imgur.com/WbEjjLG.png)
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)