Home / Questions / What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
Explanatory Question

What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?

👁 1,485 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

The most probable reason behind this error is that the header file for that function was not indicated at the top of the program. Header files contain the definition and prototype for functions and commands used in a C program. In the case of "tolower()", the code "#include " must be present at the beginning of the program.