address of ch passed to get_char not int