Dev cpp programme to find "total numbers of array elements".
Expert's answer
#include <iostream>usingnamespacestd;
intmain() {
int arr[] = {2, 4, 5, 6, 7, 8}; //it is possible to set N numbersint N = sizeof(arr) / sizeof(arr[0]);
cout << N;
return0;
}