Size of pointer on a 64 bit machine

for the given code,
int *a;
cout<<sizeof(a);

the answer shown was 4 but the size of pointer on a 64 bit machine is 8 bytes??

hello @av8055

generally it is 8 bytes but it is not fixed. it depends on various factors.
read this for detail->link

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.