Can knn classify character variables?
There is basically no problem in converting a character type into an integer type, but on the other hand, there may be mistakes. Because in C language, integers are generally two bytes (two for int type, four for long type and one for short int type), and characters are one byte (two for unsigned type). It is no problem to convert one byte into two, and two bytes into one may overflow.