answersLogoWhite

0

What are the different datatypes in c plus plus?

Updated: 8/19/2019
User Avatar

Wiki User

10y ago

Best Answer

There are far too many to provide a comprehensive list -- and new datatypes are being created all the time. However, datatypes can be split into two broad categories: built-in types and user-defined types.

The built-in types include all the primitive datatypes inherited from C (including int, long, short, char, float, etc), which can be signed or unsigned and are often called intrinsic types. Built-in types also include the containers found in the standard template library (STL), including string, vector and list, along with their associated iterators. To make use of the STL types, you must include the appropriate library headers.

User-defined types are those you define yourself, typically class, struct or union definitions, as well as enums and typedefs. User-defined types also include those types provided by a third-party, excluding the built-in types. Since user-defined types are not strictly part of the language, and new types are created every day, it would be impossible to list them all.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the different datatypes in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Integer in c and c plus plus?

One of the built-in datatypes.


What are the abstract datatypes in c plus plus?

Class Object Message


Which purpose structure is using in c?

structure is a collection of variables of different datatypes.


Data type in data base?

In different languages we have different datatypes . Like in c++ we have int for integers , string for strings . In database we have datatypes, number for storing integer and varchar2 for storing string or characters.Like in languages like c we have datatypes such as char for characters , int for integers etc . In database we have datatype to denote the type of the field example numbers for storing integer, Varchar for characters.


What are different types of primitive datatypes used in c language and their range?

Perhaps the link in the related links box will help you.


What is turbo c data types?

The usual C datatypes, nothing special.


What is composite data type in c?

Composite datatypes are the datatypes which can be constructed with in a program by using prmitive datatypes and other composite types.the act of constructing a composite data type is called composition..............


What is the different between turbo c plus plus and unix c plus plus?

There is no such thing as 'unix C++'.


What is a perdefined words in TURBO C?

there are many predefined words in c.. some are void,datatypes,printf,scanf etc


Is the syntax between c and c plus plus different?

Yes


What is similarity among structure union and enum in c language?

all the three are user defined datatypes


What is the different of c and c plus plus?

c is procedure oriented and c++ is object oriented & much newer.