answersLogoWhite

0

An array is not a derived data type at all. In order to be derived there has to be a base class and an array has no base class. Here is the basic declaration of the std::array template class from the <array> header file:

template<class _Ty, size_t _Size>

class array

{ // fixed size array of values

// ...

};

A vector, on the other hand, is derived (from the <vector> header file):

template<class _Ty, class _Alloc = allocator<_Ty>>

class vector : public _Vector_alloc<!is_empty<_Alloc>::value, _Vec_base_types<_Ty, _Alloc>>

{ // varying size array of values

// ...

};

User Avatar

Wiki User

9y ago

What else can I help you with?

Continue Learning about Computer Science

What is the difference between an array element and a variable?

An array element is a specific value stored within an array data structure, identified by its position or index within the array. A variable, on the other hand, is a named storage location in a program's memory that holds a value which can be changed during program execution. Arrays can store multiple elements of the same data type, while variables typically store a single value of a specific data type.


What is blob in oracle?

BLOB = (Binary Large OBject) An Oracle BLOB data type that contains binary data with a maximum size of 4 gigabytes. This maps to an Array of type Byte. See also: CLOB, NCLOB An Oracle CLOB data type that contains character data, based on the default character set on the server, with a maximum size of 4 gigabytes. This maps to String. An Oracle NCLOB data type that contains character data, based on the national character set on the server with a maximum size of 4 gigabytes. This maps to String.


An area of memory that serves as a holding area for incoming or outgoing data is called a?

Modems us a type of memory called a Buffer to temporarily store incoming or outgoing data


What is a grid that organizes data?

A grid that organizes data into specific categories is called a spreadsheet. Many computer programs for accounting use a type of spreadsheet for analyzing data. Spreadsheets can have up to 26 columns, one for each letter of the alphabet.


What field name is also called?

The term &quot;field name&quot; is often referred to as &quot;attribute name,&quot; particularly in the context of databases and data structures. It represents a specific column or data element within a dataset, defining the type of data that can be stored. In programming, it may also be called a &quot;property&quot; or &quot;member&quot; in the context of objects or classes.

Related Questions

Why an array is called derived data type?

it contains the similar type of object which derive from the predefined data type like int,float,char e.t.c so it is called derived data type.........................


What is the difference between an array and structure?

An array is a collection of related data elements of same type.Structure can have elements of different types.An array is a derived data type.A structure is a programmer-defined data type.A struct can contain multiple data types, whereas an array can not.


What is primare datatype in c?

primary datatypes means the data types which are provided by developer of language himself like int,float,double,char are the primary data types in c language where as the String,array are nothing but the derived data types. for Ex.we derived the String data type from char datatype using array system.


What are different data type in c language?

there are three data type ic c language. they are, 1.primary data type: a.integer type b.floating point type c.character type d.void type 2.derived data type eg; array, pointer 3.userdefined data type eg; structer and union


Application of array in data structure?

That rather depends on the underlying type. For any given type T, an array of type T is user-defined if T is user-defined, otherwise it is built-in. For example: #include&lt;string&gt; // required to use std::string std::string s[42]; // user-defined array int i[42]; // built-in array Here, s is a user-defined array because std::string is a user-defined type, whereas i is a built-in array because int is a built-in type.


What is the improved array definition?

An array is used to store data having the same data type.


What is the difference between an array of structures and an array within a structure?

The main differences between an array and a structure are: An Array is a collection of similar data items.An array is derived data type.It behave like a built in data type. An array can be increased or decreased. A structure is a collection of dissimilar data items.It is a user defined data types.It must be declared and defined.A structure element can be added if necessary.


What is array Explain with syntax?

an array is a collection of the same data type.


What data type can be used to represent 1000000 elements in an array?

An array.


What is the difference between fundamental and derived data types?

fundamental data type makes up the derived data type


Can you store non primitive data type in the array list?

Yes you can store non primitive data type variables in an array. String is a non primitive data type. You can declare a string array as: String a[]=new String[10];


An array is a list of data items that all have the same type and the same name?

An array element has the same type as the array name.