Why did we get 8 in the output can you explain it more briefly

why did we get 8 in the output can you explain it more clearly.

On 32-bit machine sizeof pointer is 32 bits ( 4 bytes ), while on 64 bit machine it’s 8 byte
so this will depend upon the machine
since prateek bhaiya’s machine must be a 64 bit machine, his pointer was allocated with 8byte of memory size