Convert a char into binary code

How can you convert a char into binary code using function?
Topic archived. No new replies allowed.