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.
Loading...
Related Quiz
- Which type of inheritance in C++ restricts a derived class from inheriting from more than one base class?
- Kimberly is debugging a program where a loop intended to run 10 times is running indefinitely. Which part of the loop should she particularly inspect for possible logical errors?
- Which data type would be most appropriate for storing a boolean value?
- Robert is working on financial software and needs to store very precise values for currency calculations. Which data type should he consider?
- If a break statement is encountered in a nested loop, it will exit _______.