Computer works on binary numbers, so how do we see text messages on computer screen, As a programmer I don't understand the concept behind it
I did an experiment in which I'm just storing ascii numbers so I got a text message.
Output
I tried to find the reason on internet then I found that binary string gets converted to ASCII value.
I think I need to learn different type conversions binary to ascii, hexadecimal to ascii, and decimal to ascii
Edit : I have changed my thread title my question is related to microcontroller.
I did an experiment in which I'm just storing ascii numbers so I got a text message.
C:
#include<stdio.h>
int main(void) {
int Name[] = {75, 73, 78, 71, 50};
for (int i = 0; i < 5; i++)
{
printf("%c", Name[i]);
}
return 0;
}
Code:
KING2
I think I need to learn different type conversions binary to ascii, hexadecimal to ascii, and decimal to ascii
Edit : I have changed my thread title my question is related to microcontroller.
Last edited: