Sample m = new Sample();
m.Length = 10;
Sample m = new Sample();
m.Length = m.Length + 20;
Sample m = new Sample();
int l;
l = m.Length;
Sample.Length = 20;
Console.WriteLine(Sample.Length);
Sample m = new Sample();
int l;
l = m.Length;
namespace CuriousTabConsoleApplication { class SampleProgram { static void Main(string[] args) { int[]arr = newint[]{ 1, 2, 3, 4, 5 }; fun(ref arr); } static void fun(ref int[] a) { for (int i = 0; i < a.Length; i++) { a[i] = a[i] * 5; Console.Write(a[ i ] + " "); } } } }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.