What is the purpose of defining a function without statements?
I have a C++ file with a list of functions defined without statements and they are not used anywhere else in the script. Does this mean they are defined in some other file?
What is the purpose of defining a function without statements? I have a C++
Share
This phrase has no meaning. But I suspect you are referring to function declaration statements that do not also contain a definition (or implementation) of said function.
And, yes, typically the definitions may be found in other translation units, that are linked together to create the final executable.
The typical C++ build process should be explained fairly thoroughly in your C++ book.