Dev cpp programme to find "total numbers of array elements".
1
Expert's answer
2019-05-07T08:15:58-0400
#include <iostream>
using namespace std;
int main() {
int arr[] = {2, 4, 5, 6, 7, 8}; //it is possible to set N numbers
int N = sizeof(arr) / sizeof(arr[0]);
cout << N;
return 0;
}
Comments
Leave a comment