If a function is declared but not defined in a program, what will be the outcome during the linking phase?

  • Compilation error
  • Linker error
  • No error, it will use a default implementation
  • Runtime error
If a function is declared but not defined in a program, it will result in a linker error during the linking phase. This error occurs because the linker cannot find the actual implementation of the function, and therefore, it cannot resolve references to that function.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *