हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

Why is char often treated as an integer data type? - Computer Science

Advertisements
Advertisements

प्रश्न

Why is char often treated as an integer data type?

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

उत्तर

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. | पृष्ठ १५०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×