I recently came across a C source where the function name was declared multiple times sometimes in the header file and sometimes in the C files. I know it is not wrong by declaring the functions numerous times but my question is why should we declare a function so many times?
Share
We shouldn’t. Bad coding. All these declarations must matched, otherwise there’s going to be a compilation error.