0 votes
129 views
in C program by (1.7k points)
edited

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

1 Answer

0 votes
by (1.7k points)
selected by
 
Best answer

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 <ctype.h>” must be present at the beginning of the program.

Related questions

0 votes
1 answer 135 views
0 votes
1 answer 256 views
0 votes
1 answer 163 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

572 users

...