Answer to Question #89153 in Mechanical Engineering for Jazab Ali

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

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS