Is declaring a function in .h file necessary if I only need that function to work on one .cpp
file? Declaring the function in a .cpp
file seems to work as well.
Are there any performance differences, and is it ok to do so? Why is it an unusual practice to do so? (at least I haven't seen it)