i can use toupper() without include cctype, why?

Apr 25, 2013 at 1:16pm
why? cause the implementaion can search the lib automaticly?
Apr 25, 2013 at 1:31pm
Probably because you include another header that includes <cctype>. You can't be sure what headers the standard headers includes and it will differ between compilers and different versions of the the same compiler so to be safe you should include <cctype> anyway.
Apr 25, 2013 at 2:02pm
Remove all #include and voila: you cannot use toupper() anymore
Topic archived. No new replies allowed.