Multiple choice

Forgetting to include a header file like “math.h” will result in

  1. compilation error

  2. warning when the program is compiled

  3. warning when the program is executed

  4. error at link time

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Missing a header file like math.h means the compiler cannot find function declarations for math functions. In modern C/C++ standards (C99+, C++), this causes a compilation error because implicit function declarations are not allowed. The compiler needs to see function prototypes to validate function calls.