answersLogoWhite

0


Best Answer

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.........................

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
User Avatar

shihan hossain

Lvl 1
2y ago
show

Add your answer:

Earn +20 pts
Q: Why an array is called derived data type?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why is an array called a derived data type?

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 // ... };


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<string> // 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 data type can be used to represent 1000000 elements in an array?

An array.


What is array Explain with syntax?

an array is a collection of the same data type.


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];


Should element in an array must be of primitive data type?

No, it can be array, structure or union as well.