Hi everyone.
I was reading some source code and I cam across the line
cout << "\nu converted to upper case is " << static_cast<char> ( toupper('u') ) << endl;
Why would the programmer use static_cast<char> in conjunction with toupper to print 'U' instead of just typing cout << "\nu converted to upper case is " << toupper('u') << endl;
Thanks in advance for your input.