answersLogoWhite

0

Is array a primitive data structure?

User Avatar

Anonymous

15y ago
Updated: 8/17/2019

No, it's not. But it can be based on primitive data types (int, char, long, double and so on).

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the difference between primitive and non primitive data structure?

A primitive data structure is generally a basic structure that is usually built into the language, such as an integer, an array or a linked-list.A non-primitive data structure is built out of primitive data structures linked together in meaningful ways, such as a binary search tree, AVL Tree, Hashtable, etc.


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

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


How does structure differ from an array?

structure is a collection of dissimilar datatypes whereas array is collection of similar datatypes.....


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


Why arrays are not primitive data type?

An array is a primitive data type. It is the element type that may or may not be primitive.


Non primitive data type?

Struct or array.


Is string arr a non primitive data type?

Depends on the context of the question you were asking from, there are 2 distinct answers: Yes and NO. In the narrowest definition, any array is NOT a primitive data type in C#. Hence a string array is NOT a primitive data type in that context. A string itself, however, is a primitive data type. Some developers would like to extend the definition of "primitives" into the arrays, collections, and Enumeration. Thus, in this context, an array of string IS a primitive data type.


Why array is a primitive data structure?

An array is a primitive data structure because all elements are stored in contiguous memory. Unlike complex structures like lists and trees, elements are not stored in nodes that provide structural information. Structure is created from the elements themselves, insofar as each element is exactly the same length (in bytes) thus it is trivial to access an element in constant time from its zero-based index alone.


When an array contains values other than primitive data types is it considered a control array?

Only if the non-primitive data types are actually controls, such as an array of label controls, or an array of edit boxes. However, a control array is still an array. The only difference is that the values will likely be resource handles (objects that refer or point to the actual object which will be stored elsewhere in memory) rather than an actual value itself. That is, an array of primitive data types stores the actual value in the array itself.


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.


Quick sort is faster in data structure?

I think the data structure in question is array.


What is a complex data structure?

A complex data structure is the kind of structure that has two arrays. One array hols the real part of the complex data and the other array holds the imaginary part.