If I try to get the size of an array, I get the size of an array, but if I try to get it through a pointer, it doesn't work
#include <iostream>
using namespace std;
int main() {
int a[10];
cout << sizeof(a) / sizeof(a[0]) << endl; // works
int *p = a;
cout << sizeof(p) / sizeof(p[0]) << endl; // doesn`t work
}