FROM THE ASCII TABLE:
Decimal Character
48 0
49 1
50 2
51 3
52 4
53 5
54 6
55 7
56 8
57 9
In this table this 0-9 digits are ascii characters for which each of them has corresponding value.
I know that "Everything in memory is treated as numerical values. Computer does not understand ASCII or character values"
1: WE KNOW THAT ASCII code is the numerical representation of charcters then HOW numeric no 0-9 can be treated as characters?They are meant to be integers or numerals right??
2:
char a ='1'; treats 1 as a character
int a = 1;. treats 1 as a integer data type then 1 is a integer or a character?
Decimal Character
48 0
49 1
50 2
51 3
52 4
53 5
54 6
55 7
56 8
57 9
In this table this 0-9 digits are ascii characters for which each of them has corresponding value.
I know that "Everything in memory is treated as numerical values. Computer does not understand ASCII or character values"
1: WE KNOW THAT ASCII code is the numerical representation of charcters then HOW numeric no 0-9 can be treated as characters?They are meant to be integers or numerals right??
2:
char a ='1'; treats 1 as a character
int a = 1;. treats 1 as a integer data type then 1 is a integer or a character?