हिंदी

Why is char often treated as an integer data type?

Advertisements

प्रश्न

Why is char often treated as an integer data type?

टिप्पणी लिखिए
Advertisements

उत्तर

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.

shaalaa.com
Data Types
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 9: Introduction to C++ - Data Types, Variables and Expressions - Evaluation - Section - B [पृष्ठ १५०]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 9 Introduction to C++
Data Types, Variables and Expressions - Evaluation - Section - B | Q 3. | पृष्ठ १५०
Advertisements
Share
Notifications



      Forgot password?
Use app×