Hello, I am having a "loss of precision error" every time I try to convert a lower case to an upper case. We are not allowed to use the touppercase and tolowercase method in the program. Any advice on how to go about doing this without the error would be appreciated, thank you.
if (c >= 'a' && c <= 'z' )
{
x = c - 32;
}
c is the number read in
x was declared at the top of the program