Question:

What is the difference between methods – “System.Array.Clone()” and “System.Array.CopyTo()” in C#?

Answer:

  • “CopyTo()” method can be used to copy the elements of one array to other. 
  • “Clone()” method is used to create a new array to contain all the elements which are in the original array.

Keywords:

© 2017 QuizBucket.org