Implicit typecasting converts the character into it 's equivalent ASCII
int decimal = ch ; cout << " Octal ▁ value : ▁ " << Octal ( decimal ) << endl ; cout << " Decimal ▁ value : ▁ " << decimal << endl ; cout << " Hexadecimal ▁ value : ▁ " << Hexadecimal ( decimal ) << endl ; cout << " HTML ▁ value : ▁ " << HTML ( decimal ) ; }