I recently came across the question in an interview. "What is the size of a pointer in C?".
My first thought was to ask, "well it depends on the computers operating system whether we are working in 64-bit, 32-bit, 8-bit etc." From my previous knowledge working with C (mostly in python now) I remember that if we are in 32-bit OS then the size of a pointer would be 4 bytes and in 64-bit OS 8 bytes. Can someone elaborate more clearly? or correct me if I am mistaken?