C programming warning: array subscript has type ‘char’ [-Wchar-subscripts]

May 6, 2014 in answer

0 votes, 0.00 avg. rating (0% score)

ANSWER:

The warnings are a result of ‘toupper()’ requiring an ‘int’ type as a parameter, while the question code is providing a ‘char’ type.

Mahonri Moriancumer from http://stackoverflow.com/questions/23506934