5 ms·I think you meant: int value = c - '0'; Otherwise, value will be negative.by xtacy 15y agoI think you meant: int value = c - '0'; Otherwise, value will be negative.