1

If i have a character 'V' and it's binary number is 01010110 Is there any formula to do it? like masking it with a bit or &? not sure if there's any bitwise operation for converting binary to ASCII in c

Stayalive
  • 37
  • 6
  • Possible duplicate of [Binary to decimal in c](https://stackoverflow.com/questions/12338584/binary-to-decimal-in-c) – dvhh Oct 03 '19 at 03:04

1 Answers1

0

ASCII is one encoding scheme to map a integer stored in your computer memory to a visual character.

Meaning that using an ASCII table, you can see that 'V' is mapped to the integer decimal value '86' (note that for a program such table is not needed, as your value is already stored as an integer)

Then is is a matter of converting it to binary which is convered in other stack overflow question

dvhh
  • 4,724
  • 27
  • 33