### My issue

i saw the solution but i don’t know why to divide it by 4

### My code

```
#include <bits/stdc++.h>
using namespace std;
int main() {
int Num[6] = {10, 20, 30, 40, 50, 60};
cout << sizeof(Num) / 4;
return 0;
}
```

Learning course: Learn C++

Problem Link: CodeChef: Practical coding for everyone

For example if you buy 6 chocolates. Each chocolate is 4 rupees. So total it costs 24 rupees for 6 chocolates.

Now I’ll ask you a question on this:

I bought ‘x’ number of chocolates for total of 24 rupees. Each chocolate costs 4 rupees. What will you do?

You will just divide 24/6 right?

Same applies here. They gave 6 elements. Each integer size is 4 bytes. sizeof() gives 6*4 i.e 24.

So you just need to divide 24/4 to get number of integers