Check out example codes for "tarray ue4 c++". It will help you in understanding the concepts better.

Code Example 1

TArray<int32> IntArray;

Code Example 2

#include "Containers/Array.h"
//Might need this. header file

// Syntax
TArray<Variable_Type> Variable_Name;

// Example code
TArray<AActor> Gun;

// For more information vist https://docs.unrealengine.com/en-US/API/Runtime/Core/Containers/TArray/index.html

Learn ReactJs, React Native from akashmittal.com