Question #89153

Dev cpp programme to find "total numbers of array elements".

Expert's answer

#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS