using System; using System.Collections.Generic; using System.Text; namespace MemoryAllocation { class Program { static void Main(string[] args) { int size = 2; while (size > 0) { Byte[] b = new Byte[size]; for (int i = 0; i<size; ++i) b[i] = 13; size *= 2; } } } }
while
size
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)