answersLogoWhite

0

The range of character data types in C++ is the set of characters in the host's character set.

It is inappropriate to consider the numerical range of such things as characters, because that depends on the particular codeset involved, such as ASCII, EBCDIC, UNICODE, KANJI, etc. Doing that leads to non-portable code, and lazy programming practices. Do not write code that depends on the collating sequence of the character set, or the numerical difference between two characters.

Type char can be signed or unsigned, the value range is -128..127 or 0..255 respectively.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can an integer data type in c plus plus stores character value?

no


What is the domain of the unsigned character data type?

The unsigned character type has a minimum range of 0 to 255 and is therefore the ideal type to represent integers within this range, in addition to representing all character codes within the extended ASCII character set.


What is difference between '1' and 1 as for us a computer is concerned with respect to c plus plus?

When you type '1' in a C++ program, it is considered to be of character data type(char). When you type 1, it is considered to be of integer data type.


What data type is middle initial?

A character data type.


What is data and define its type?

Data is information. Data type defines the type of data - integer, character etc


What is a character type data?

text


Is character datatype of Excel?

The name used in Excel for that data type is Text, but it is like the character data type in other computer systems.


Character?

A single letter data type


How could you use the notation sigma in c plus plus?

There is no symbol for sigma in the ASCII character set, so you would have to use Unicode characters instead. 16-bit Unicode requires the wchar_t data type instead of the usual char data type. You must also use the wide-character streams, wcout and wcin to insert and extract wchar_t sequences.


What data types allows unlimited character input?

String data type allows unlimited character intput


Why subrange does not support real data type in pascal?

SubRange data types take a bit of getting used to, although they are simple in principle. With the standard ordinal (integer and character) types you are allowed a finite range of values. For example, for thebyte type, this is 0 to 255. SubRanges allow you to define your own type with a reduced range of values.


What is java string?

array of character data type which is terminated by null character