#include "stdafx.h" #include <iostream> using namespace std; int main() { int nativeArray[10]; array<int>^ managedArray = gcnew array<int>(10); for (int i = 0; i < 10; i++) { nativeArray[i] = i*i; cout << nativeArray[i] << " "; managedArray[i] = nativeArray[i]; cout << managedArray[i] << " "; } cout << endl; }