answersLogoWhite

0


Best Answer

char: A one-byte integer with implementation-defined signedness.

signed char: A signed one-byte integer.

unsigned char: An unsigned one-byte integer.

wchar_t: A wide character of implementation-defined size and signedness.

short: A signed integer with at least 16 bits.

unsigned short: An unsigned integer with at least 16 bits.

int: A signed integer with at least 16 bits.

unsigned int: An unsigned integer with at least 16 bits.

long: A signed integer with at least 32 bits.

unsigned long: An unsigned integer with at least 32 bits.

long long: A signed integer with at least 64 bits.

unsigned long long: An unsigned integer with at least 64 bits.

float: A floating-point number with 32 bits of precision.

double: A floating-point number with 64 bits of precision.

  • long double: A floating-point number with 80-96 bits of precision.
User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

The fundamental built in data types in C++ are integral (char, short, int, and long) and floating (float, double, and long double1).

The fundamental derived data types in C++ are arrays, functions, pointers, and references.

The composed derivative data types in C++ are classes, structures, and unions.

----------------------------------------------------------

1Microsoft specific ??

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

C++ has built-in support for primitive data types, including the integrals int and char, as well as the two floating point types, float and double. C++ also has built-in support for all modified primitives (datatypes modified with the long, short, signed and unsigned modifiers). This also includes type definitions (typdefs) for modified primitives, such as size_t (unsigned long int) and wchar_t (short int).

In order to provide consistency between primitive datatypes and classes, C++ also provides an object-oriented syntax when instantiating instances of a primitive. Thus instead of using int i = 42, we can say int i(42) instead. Similarly, when instantiating primitives dynamically, instead of int* i = (int*) malloc(sizeof(int)) we can simply use int* i = new int.

C++ has a wealth of more complex datatypes contained within the standard template library, including all the most commonly used data structures such as vectors (dynamic arrays), lists, queues and stacks. Support for these types is not built-in however -- you must include the appropriate portions of the standard library as and where they are required. The library itself provides all the support required by these datatypes, not C++. The same applies to all user-defined types. C++ only provides built-in support for primitive datatypes which act as the basic building blocks for all other datatypes.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Explain in detail datatype supported in 'C plus plus ' language?
Write your answer...
Submit
Still have questions?
magnify glass
imp