Write c++ statement to perform the following operations: 1. dynamically allocate an integer array called myArray with 50 elements 2. deallocate the entire array myArray code example
Example: c++ delete dynamically allocated array
int length = 69;
int * numbers = new int[length];
delete[] numbers;