answersLogoWhite

0

What are the array operations?

Updated: 11/4/2022
User Avatar

Wiki User

8y ago

Best Answer

There are no array operations in C. Arrays implicitly convert to pointers, thus any operation you might attempt upon an array you would actually perform on a pointer.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the array operations?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Difference between array processor and multiprocessor?

an array processor can handle multiple data elements simultaneously,in a parallel fashion, but a multiprocessor handle multiple processes simultaneously which may include more than one data element in each process... An array procesor is optimized for array operations, has its own set of instructions, large memory block moves, logical operations on many array elements, etc and may itself be multi-processor or massively parallel. It has an interface where a host loads memory locations with the array to be processed (or perhaps a data file), then the array processor uses its specialized structure to do what was asked of it on the array, then tell the host is done and the result may be found in memory locations or perhaps a data file. Many of the jobs supercomputers do are array operations, the specialized capabilities can cost thousands of dollar per CPU second but they can do array operations that might take years for slower general purpose computers. An array procesor can also be smaller, a graphics processor handling the video display is an array processor. A typical operation is move the image to the right, move all the pixels to the right.. A general purpose computer may be multi-processor (Intel's multi-core).


Differentiate single dimensional array to double dimensional array?

A single dimensional array is an array of items. A two-dimensional array is an array of arrays of items.


What is meant by irregular dimensional array?

An irregular dimensional array is a special type of multi-dimensional array.First we must understand that a multi-dimensional array is just an array of arrays. Each element in the array is, itself, an array of elements.A regular multi-dimensional array will be an array of size n, with each element containing a separate array of size m. That is, each sub-array has the same size.An irregular multi-dimensional array will be a multi-dimensional array in which each sub-array does not contain the same number of elements.Regular array:array[0] = new array{0, 1, 2}array[1] = new array{3, 4, 5}array[2] = new array{6, 7, 8}array[3] = new array{9, 10, 11}This regular array is an array of size 4 in which each sub-array is of size 3.Irregular array:array[0] = new array{0, 1, 2}array[1] = new array{3, 4}array[2] = new array{5, 6, 7}array[3] = new array{8, 9, 10, 11}This irregular array is an array of size 4 in which the size of each sub-array is not the same.


How do you swap two adjecent no in array in c?

Option 1) Use a temporary variable: int x = array[i]; array[i] = array[i+1]; array[i+1] = x; Option 2) Use bit operators: array[i] ^= array[i+1] ^= array[i];


How do you swap rows in 2 dimensional array in Java?

[]temp = array[1] array[2]=array[1] array[1]=[]temp

Related questions

What is the Difference between array and vector processors?

Vector processor and Array processor are just the same thing, its a CPU design where instruction are set includes operations that can perform mathematical operations on multiple data elements simultaneously.


Difference between array processor and multiprocessor?

an array processor can handle multiple data elements simultaneously,in a parallel fashion, but a multiprocessor handle multiple processes simultaneously which may include more than one data element in each process... An array procesor is optimized for array operations, has its own set of instructions, large memory block moves, logical operations on many array elements, etc and may itself be multi-processor or massively parallel. It has an interface where a host loads memory locations with the array to be processed (or perhaps a data file), then the array processor uses its specialized structure to do what was asked of it on the array, then tell the host is done and the result may be found in memory locations or perhaps a data file. Many of the jobs supercomputers do are array operations, the specialized capabilities can cost thousands of dollar per CPU second but they can do array operations that might take years for slower general purpose computers. An array procesor can also be smaller, a graphics processor handling the video display is an array processor. A typical operation is move the image to the right, move all the pixels to the right.. A general purpose computer may be multi-processor (Intel's multi-core).


Diff between string and array?

String and array are not related to one another so they have many differences. a. A string is used to hold alpha numeric values inside it b. An Array is used to hold multiple values of any primitive data type c. A String has operations like equals, concatenate, substring etc whereas an array does not have them d. You can iterate through an array but we cannot iterate through a string.


What made the definition of public administration diffficult?

The definition of public administration is made difficult because of the wide array of functions and operations it involves.


What are the design issue for array?

What is its size? How is its size determined and when (compile/run-time). What does the software using the array do when the array is empty? partially full? full? Avoid the software addressing elements of the array which are undefined, or addressing elements outside the bounds of the array When and who is responsible for allocating and freeing memory when the array is no longer needed (program or called procedure start/termination) or some other time determined during program execution. If the array is implementing a data structure such as a stack, queue, dequeue, list, etc. What is its implementation of the usual data structure operations, Create, Empty, List Items, Top, First, Last, Next, etc.


Differentiate single dimensional array to double dimensional array?

A single dimensional array is an array of items. A two-dimensional array is an array of arrays of items.


What is meant by irregular dimensional array?

An irregular dimensional array is a special type of multi-dimensional array.First we must understand that a multi-dimensional array is just an array of arrays. Each element in the array is, itself, an array of elements.A regular multi-dimensional array will be an array of size n, with each element containing a separate array of size m. That is, each sub-array has the same size.An irregular multi-dimensional array will be a multi-dimensional array in which each sub-array does not contain the same number of elements.Regular array:array[0] = new array{0, 1, 2}array[1] = new array{3, 4, 5}array[2] = new array{6, 7, 8}array[3] = new array{9, 10, 11}This regular array is an array of size 4 in which each sub-array is of size 3.Irregular array:array[0] = new array{0, 1, 2}array[1] = new array{3, 4}array[2] = new array{5, 6, 7}array[3] = new array{8, 9, 10, 11}This irregular array is an array of size 4 in which the size of each sub-array is not the same.


How do you swap two adjecent no in array in c?

Option 1) Use a temporary variable: int x = array[i]; array[i] = array[i+1]; array[i+1] = x; Option 2) Use bit operators: array[i] ^= array[i+1] ^= array[i];


What is array literal in as2?

An array literal is a comma-separated list of the elements of an array. An array literal can be used for initializing the elements of an array.


How do you swap rows in 2 dimensional array in Java?

[]temp = array[1] array[2]=array[1] array[1]=[]temp


Why the array is starting from zero?

By design; it makes the compiler's work easier. 1-based array's addressing-function: Address (array, index) = Address (array) + (index-1)*Elemsize(array) 0-based array's addressing-function: Address (array, index) = Address (array) + index*Elemsize (array)


What is the array function in CAD?

there r 2 types of array in cad - rectangular array and polar array...........