The problem is not with the int and char but the problem it looks like is for char and char array