Multiple choice general knowledge science & technology

When using a built-in function, you must?

  1. include the function's prototype.

  2. include the proper header file.

  3. include the function's definition.

  4. specify the length of the library function.

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

When using built-in functions in C/C++, you must include the proper header file that contains the function's prototype. Header files like , , or declare the functions so the compiler can validate their usage. The function's actual definition is in the library, which is linked during compilation. You don't need to redefine the function or specify its length.