answersLogoWhite

0


Best Answer

sizeof (typename) will tell you.

Here are some possible variations:

WinDos 16/small:

1: char

2: short, int, pointer

4: long

WinDos 16/large:

1: char

2: short, int

4: long, pointer

Windows 32, unix 32:

1: char

2: short

4: int, long, pointer

8: long long

Windows 64:

1: char

2: short

4: int, long

8: long long, pointer

Unix 64:

1: char

2: short

4: int

8: long, long long, pointer

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How much are the size of memories of in built data types of C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is data type in c plus plus?

A data type simply means the type of data represented by a variable or constant, or the return type of a function. C++ is a strongly-typed language thus all variables and constants must have a data type associated with them. The data type may be a primitive data type such as int or char, which are used as the building blocks for more complex data types. Primitives, typedefs, enums and classes (which includes structs and unions), are used to provide the definitions for all the various data types that you can employ within a program. Variables and constants provide instances of those data types. Pointer variables must also have a data type associated with them to determine the type of data being referred to, even if it is void* which simply means it points to any data type, the actual data type being determined at runtime. However, in C++, void* is rarely required since polymorphism allows programmers to treat objects generically; there is rarely a need to know the actual runtime type of an object, since that information is provided automatically by the object's own virtual table. The programmer need only know the generic data type and call the appropriate virtual methods of that type in order to invoke the specific behaviour of the actual data type.


Why type compability is required in assigninig values in java?

For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.


What are the Different types of data type?

Java Data TypesJava is a powerful language that gives us options to have data in different forms. We have several data types that we can use for our needs. The basic data types that java offers us are termed as Primitive Data Types. Though all programming languages have varied data types java offers us with a variety of data types that are much powerful and simplified to use when compared to other languages.The Java programming language is strongly-typed, which means that all variables must first be declared before they can be used. This involves stating the variable's type and name.int age = 10;The above statement tells the java compiler that a field named "age" which holds numeric data and having an initial value of 10 is declared. A variable's data type determines the values it may contain, plus the operations that may be performed on it. In addition to int, the Java programming language supports seven other primitive data types. A primitive type is predefined by the language and is named by a reserved keyword. Primitive values do not share state with other primitive values. The eight primitive data types supported by the Java programming language are: byte, short, int, float, double, long, char and boolean


User defined data types in c plus plus?

C++ provides the following fundamental types:A Boolean type (bool)Character types (char and wchar_t)Integer types (int, short, long and long long)Floating-point types (float, double and long double)A type, void, used to signify the absence of information.Fundamental types correspond to the basic storage units of the machine. From the fundamental types we can construct other types using declarator operators:Pointer types (such as int*)Array types (such as char[])Reference types (such as double& and char&&)The Boolean, character and integer types are collectively known as the integral types. The integral and floating-point types are collectively known as the arithmetic types.The fundamental types, pointers, arrays and references are collectively known as the built-in types.The integral types can be further modified using the signed or unsigned modifiers. Strictly speaking, both long and short are also type modifiers because a short implies a short int. This is simply an artefact from C programming where int was implied in the absence of an explicit type.Note that aliases (using x = type) and type definitions (typedef) are not types per se, they are simply alternative names for preexisting types. For instance, although wchar_t is a built-in type because it does not require a declaration, in reality it is just an alias for an implementation-defined integral type (typically unsigned short).From these built-in types we can construct other types:Data structures and classes (such as std::vector and std::string)Enumeration types (enum and enum class)Data structures, classes and enumeration types are collectively known as user-defined types.In essence, any type that requires an explicit declaration is a user-defined type. This includes all C++ standard library types such as std::string because we cannot use a std::string object unless we include the header where the type is declared.


Java variable types and controls?

Java is a powerful language that gives us options to have data in different forms. We have several data types that we can use for our needs. The basic data types that java offers us are termed as Primitive Data Types. Though all programming languages have varied data types java offers us with a variety of data types that are much powerful and simplified to use when compared to other languages.The Java programming language is strongly-typed, which means that all variables must first be declared before they can be used. This involves stating the variable's type and name.int age = 10;The above statement tells the java compiler that a field named "age" which holds numeric data and having an initial value of 10 is declared. A variable's data type determines the values it may contain, plus the operations that may be performed on it. In addition to int, the Java programming language supports seven other primitive data types. A primitive type is predefined by the language and is named by a reserved keyword. Primitive values do not share state with other primitive values. The eight primitive data types supported by the Java programming language are:byte, short, int, long, float, double, char and boolean

Related questions

What is data type in c plus plus?

A data type simply means the type of data represented by a variable or constant, or the return type of a function. C++ is a strongly-typed language thus all variables and constants must have a data type associated with them. The data type may be a primitive data type such as int or char, which are used as the building blocks for more complex data types. Primitives, typedefs, enums and classes (which includes structs and unions), are used to provide the definitions for all the various data types that you can employ within a program. Variables and constants provide instances of those data types. Pointer variables must also have a data type associated with them to determine the type of data being referred to, even if it is void* which simply means it points to any data type, the actual data type being determined at runtime. However, in C++, void* is rarely required since polymorphism allows programmers to treat objects generically; there is rarely a need to know the actual runtime type of an object, since that information is provided automatically by the object's own virtual table. The programmer need only know the generic data type and call the appropriate virtual methods of that type in order to invoke the specific behaviour of the actual data type.


Does memories and these rhyme?

No, "memories" and "these" do not rhyme. "Memories" ends with the sound "ēz" while "these" ends with the sound "ēz".


Why type compability is required in assigninig values in java?

For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.For some pairs of data types, an automatic translation just doesn't make sense. For other pairs of data types, precision might be lost. In any case, the compiler tries to detect as much errors as possible during the compilation stage, that way, you will have less problems once the program actually runs.


What are the Different types of data type?

Java Data TypesJava is a powerful language that gives us options to have data in different forms. We have several data types that we can use for our needs. The basic data types that java offers us are termed as Primitive Data Types. Though all programming languages have varied data types java offers us with a variety of data types that are much powerful and simplified to use when compared to other languages.The Java programming language is strongly-typed, which means that all variables must first be declared before they can be used. This involves stating the variable's type and name.int age = 10;The above statement tells the java compiler that a field named "age" which holds numeric data and having an initial value of 10 is declared. A variable's data type determines the values it may contain, plus the operations that may be performed on it. In addition to int, the Java programming language supports seven other primitive data types. A primitive type is predefined by the language and is named by a reserved keyword. Primitive values do not share state with other primitive values. The eight primitive data types supported by the Java programming language are: byte, short, int, float, double, long, char and boolean


Where can I get information on data entry jobs from home?

Eazyhomejobs specialize in the data entry jobs from home. They offer lots of information about the jobs types, incomes and much more. All the jobs proposed are scam free.


User defined data types in c plus plus?

C++ provides the following fundamental types:A Boolean type (bool)Character types (char and wchar_t)Integer types (int, short, long and long long)Floating-point types (float, double and long double)A type, void, used to signify the absence of information.Fundamental types correspond to the basic storage units of the machine. From the fundamental types we can construct other types using declarator operators:Pointer types (such as int*)Array types (such as char[])Reference types (such as double& and char&&)The Boolean, character and integer types are collectively known as the integral types. The integral and floating-point types are collectively known as the arithmetic types.The fundamental types, pointers, arrays and references are collectively known as the built-in types.The integral types can be further modified using the signed or unsigned modifiers. Strictly speaking, both long and short are also type modifiers because a short implies a short int. This is simply an artefact from C programming where int was implied in the absence of an explicit type.Note that aliases (using x = type) and type definitions (typedef) are not types per se, they are simply alternative names for preexisting types. For instance, although wchar_t is a built-in type because it does not require a declaration, in reality it is just an alias for an implementation-defined integral type (typically unsigned short).From these built-in types we can construct other types:Data structures and classes (such as std::vector and std::string)Enumeration types (enum and enum class)Data structures, classes and enumeration types are collectively known as user-defined types.In essence, any type that requires an explicit declaration is a user-defined type. This includes all C++ standard library types such as std::string because we cannot use a std::string object unless we include the header where the type is declared.


What allows users to easily sort data in a spreadsheet?

Spreadsheets allow you to layout data in columns. Once you have your data entered, you can select it and sort it using the built-in sorting facility that all spreadsheet applications have. It is an important aspect of spreadsheets, so all of them have ways of doing everything from simple to much more complex sorting or your data.


What did the Africans bring to Australia?

nothing much, exept memories about slavery


Why format specifier is not necessary in language C plus plus?

Format specifiers are not necessary because we can use the much more flexible insertion operator to insert formatted text in an output stream, or the extraction operator to extract formatted data from an input stream. Format specifiers are simply far too low-level and can only handle built-in data types such as strings, integrals and floats, they cannot handle more complex data types such as classes and data structures and we cannot create new specifiers to cater for them. But in C++ we can simply overload the insertion and extraction operators to cater for any data type we wish, thus providing a consistent means of inserting any object into an input stream or extracting it from an output stream.


Java variable types and controls?

Java is a powerful language that gives us options to have data in different forms. We have several data types that we can use for our needs. The basic data types that java offers us are termed as Primitive Data Types. Though all programming languages have varied data types java offers us with a variety of data types that are much powerful and simplified to use when compared to other languages.The Java programming language is strongly-typed, which means that all variables must first be declared before they can be used. This involves stating the variable's type and name.int age = 10;The above statement tells the java compiler that a field named "age" which holds numeric data and having an initial value of 10 is declared. A variable's data type determines the values it may contain, plus the operations that may be performed on it. In addition to int, the Java programming language supports seven other primitive data types. A primitive type is predefined by the language and is named by a reserved keyword. Primitive values do not share state with other primitive values. The eight primitive data types supported by the Java programming language are:byte, short, int, long, float, double, char and boolean


How much did it cost the Venice seawall to be built?

how much did it cost the venice seawall to be built


What advantages of primary data?

Primary data is very advantageous over secondary data in several types of ways. First of all, it is the actual thing, or the whole thing, depending on what primary data you are talking about. Primary data in the form of architecture is obviously much preferable over secondary data such as pictures, because it is there in front of you, and can be examined by your senses, not only seen by your eyes. Obviously secondary data also has advantages, such as being easier to obtain than primary data, but primary data is still a good way to obtain information.