Sizeof pointer?

why sizeof pointer is always giving 8? please explain

@namangarg31

as pointer contains only address
so whatever pointer points but size of it’s address is always same

so you understand it like
how big is a house doesn’t matter
size of house number is of same size for both big and small house

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course