128k views
5 votes
Why is char often treated as an integer data type?

User Kenna
by
6.3k points

1 Answer

3 votes
It is because it is in ASCII and thus is just a number. This means an integer can represent it.
User Nicolas Mommaerts
by
6.3k points