Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Array merge
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int[] array1 = {1,2}; int[] array2 = {3,4}; int array1OriginalLength = array1.Length; Array.Resize<int>(ref array1, array1OriginalLength + array2.Length); Array.Copy(array2, 0, array1, array1OriginalLength, array2.Length); //Your code goes here for(int i=0; i<array1.Length; i++) { Console.WriteLine(array1[i]); } } } }
run
|
edit
|
history
|
help
0
KeyValue pair C#
How to find second largest integer in an array using only one loop?
⁸
Generics
QLSV
IEnumerable<T> generic interface implementation
Remove Duplicate Ignore Case
W.I.P (c#)
Collections
asxasxsd