I have heard that calling int main(){...}
was bad practice and one should rather call the function with its parameters int main(int argc, char* argv[]){...}
, I was wondering if this could be generalized to function declarations in headers.
In some situations, one may have to write a function prototype in a header without any parameters on inputs (for some reasons of include troubles let say), and declare the input parameters and their types in the function definition in a distant .c file. Is this likely to cause security issues as one could make use of this absence of informations? Or is the function definition (with input parameters declared) preventing this? I couldn't find any link about this.