Declare, create, and initialize a 1D managed array
#include "stdafx.h" int main() { array<int>^ managed_array = gcnew array<int>(2) { 10, 20 }; }