Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
a5
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) 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[] firstt ={1}; int[] secondd ={1}; int[] a5(int[] first , int[] second) { int[] sav =new int[2]; int y=0; if(first == null ||second == null ||first.Length<0 || second.Length<0) { return null; } else { for(int i=0;i<first.Length;i++) { for(int o=0;o<second.Length;o++) { if(first[i]==second[o]) { sav[y]=second[o]; y++; } } } } return sav; } int[] tess=a5(firstt, secondd); Console.WriteLine(tess[1]); } } }
run
|
edit
|
history
|
help
0
Saga name NLog
== and Equals Differeance in C#
Linq FirstOrDefault() null check in c#
code
Practical
1
bc160401882
SAF Mid Terms
Simple StackOverflowException
Fiddling around