TArraymyArray; myArray.Push(10); myArray.Push(20); myArray.Push(30);
TArrayIn the above example, an empty array of integer pointers is created. Three integer pointers are created and initialized with values. Then, the pointers are added to the array using the Push function. Package/Library: The TArray class is a part of the Unreal Engine 4 development platform. It is included in the "CoreUObject" module of the engine.myArray; int* p1 = new int(10); int* p2 = new int(20); int* p3 = new int(30); myArray.Push(p1); myArray.Push(p2); myArray.Push(p3);