#include <iostream>
using namespace std;
int main() {
int arr[] = {2,3,44,5,6,8};
int n = sizeof(arr)/4; //divided by 4 because the size is calculated in bytes and single array consumes 4 bytes
cout<<n;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: