answersLogoWhite

0

How one array is copied to another?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

int a[10], b[10];

...

a= b; /* method#1 */

for (i=0; i<10; ++i) a[i]= b[i]; /* method #2 */

memcpy (a, b, sizeof (a)); /* method #3 */

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is one word for 'array of food'?

Buffet. Another answer is smorgasbord.


How do you merge two array without using function?

Take another array big enough to hold both array copy content of these two array into new one. You merged two array and haven't used a single function.!


How do you send an array of strings with a signal in Dbus with Glib bindings?

Arrays are passed as arguments to method parameters. To pass a string array from one activity to another the code is [] stringArray = intent.getStringArrayExtra("string-array");.


Difference between 1D array and 2D arrays?

1d array contains single row and multiple columns and 2d array contains multiple row and multiple columns. 2d array is a collection of 1d array placed one below another,while 1d array is simple a collection of elements.


Segments of eukaryotic DNA that can move or be copied from one site to another in the genome are called?

transposable element


When copying and pasting records from one table to another the records must first be copied to the what?

clip board


What an array?

An array is an aggregate of data elements of the same type. Arrays are allocated in contiguous memory. An element of an array can be another array type, also known as a multi-dimensional array.


What are 3 different ways to implement an array of order 4x8?

An array of order 4x8 can either be implemented as a one-dimensional array of order 32 or as a one-dimensional array of order 4, where each element is a one-dimensional array of order 8. In either case, the 32 data elements are allocated contiguously and there is no difference in performance. A third way is to implement the one-dimensional array of order 4 as an array of pointers to separately allocated one-dimensional arrays of order 8. The order 4 array is contiguous as are the order 8 arrays, however they need not be contiguous with one another other. This is the least efficient implementation due to the additional level of indirection required to navigate the array.


What another word for copied?

duplicate imitation


What are bits of DNA that have been repeatedly copied from one chromosome to another referred to as?

Transposable elements, or transposons, are bits of DNA that have been repeatedly copied from one chromosome to another. These elements can move within the genome, causing genetic mutations and playing a role in genome evolution.


IS Foreign Keys are used to ensure that rows in one database are copied to another a True b False?

true


What is the minimum absolute difference between any two elements in a given array?

The minimum absolute difference between any two elements in a given array is the smallest positive number that can be obtained by subtracting one element from another in the array.