Why is char often termed as an integer type?

Q3. The data type char is used to represent characters. Then why is it often termed as an integer type?

Ans. The memory implementation of char data type is in terms of the number code (which is integer). Therefore, it is said to be another integer data type.

Leave a Reply

Your email address will not be published. Required fields are marked *

101 Views
%d bloggers like this: