Published
- 1 min read
get the first element of array c++
The solution for this is noted below
get the first element of array c++
Solution
int arr = [1,2,3,4];
cout << arr[0]; //printing the first element of the array arr
Try other methods by searching on the site. That is if this doesn’t work