answersLogoWhite

0

How one array is copied to another?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

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

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How one array is copied to another?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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.!


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

introns


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.


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");.


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.


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 another word for copied?

duplicate imitation


Explain the Different types of array?

one dementional array and two dementional array


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

true