Advertisements
Advertisements
Question
Why is char often treated as an integer data type?
Solution
Character data type accepts and returns all valid ASCII characters. The character data type is often said to be an integer type since all the characters are represented in memory by their associated ASCII Codes. If a variable is declared as char, C++ allows storing either a character or an integer value.
APPEARS IN
RELATED QUESTIONS
Why is the main function special?
How many categories of data types are available in C++?
Which of the following data types is not a fundamental type?
Which of the following operator returns the size of the data type?
Mention the different types of data that you deal with while browsing the Internet.
Categorize the following data as structured, semi-structured, and unstructured:
Newspaper
Categorize the following data as structured, semi-structured, and unstructured:
Cricket Match Score
Categorize the following data as structured, semi-structured, and unstructured:
HTML Page
Categorize the following data as structured, semi-structured, and unstructured:
Patient records in a hospital
The number of bits occupied by the value 'a' is ______.