answersLogoWhite

0

What is an user defined array?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

The term user-defined really means programmer-defined when referring to programming. An user-defined array is therefore an array that the programmer has declared, rather than one that is provided by a third party or is built-in to the language. In essence, any array you yourself declare is an user-defined array. The following are examples of user-defined arrays:

int x[10]; // static array of 10 integer elements. Allocated at compile time.

int* y = new int [5]; // dynamic array of 5 integer elements. Allocated at runtime.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

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.


If an array is declared in user defined function and pointer to this array is returned to main function is it possible to access that array?

Either put some array terminator as the last element (like '\0') or return the length of the array as an output from user defined function.


Is there a way to use a variable to declare the size of an array in true basic?

! variable to declase the size of an array in True Basic ! set up a dummy value for array - any initial value > 0 is fine. DIM array$(999) ! ask the user for the length of the array INPUT PROMPT "Enter array size " :size ! resize the array with user defined length MAT REDIM array$(size) ! program end END


What is the user defined object?

A user-defined object is an instance of a user-defined type, typically a class, or an enum.


What are user defined data types?

Actually user defined data type made by user like array,structure,union,pointer. the data type which is define by user or programer according to his need is called user define data type and also called the programer define data type........


How many types of user defined exceptions are there and list them?

They are user-defined. In other words: You & Me (Users) define them (make them). There is an endless number of user-defined exceptions


In c programming is main predefined or user defined?

main is predeclared and user defined.


What is the advantage of user-defined copy constructor?

What is the advantage of user-defined copy constructor


What is use of user defined data in c?

to create user defined functions the user defined data is needed nd its useful to the programmer to create its own data.


How do you accept values of array of structure from user in c?

How do you accept total no of array elements and values from the user in c?


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 a user-defined region?

A user-defined region is one that is classified by use. eg. hydro-electricity region