Why do we need to convert string or whatever to hexadecimal? Why do we need to know witch character encoding are we using? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do we need to convert string or whatever to hexadecimal? Why do we need to know witch character encoding are we using?

18th Dec 2019, 12:12 PM
Kensy Master Will
Kensy Master Will - avatar
2 Answers
+ 2
Your machine can understand only binary number system so the compiler converts your code to hexadecimal which is again made of binary digits to help the machine understand what your program is all about. Only after doing the above you get your desired result on the screen.
18th Dec 2019, 1:40 PM
Avinesh
Avinesh - avatar
0
I'm using php. And they're functions to convert strings to hexadecimal. I'm asking in witwh situation do we need to convert to hexadecimal during programming.
18th Dec 2019, 11:08 PM
Kensy Master Will
Kensy Master Will - avatar