how to get the last element5 of a c++ array code example
Example: get the first element of array c++
int arr = [1,2,3,4];
cout << arr[0]; //printing the first element of the array arr
int arr = [1,2,3,4];
cout << arr[0]; //printing the first element of the array arr