Search code examples
pointerscharconstantssizeof32-bit

Sizeof(const char **) on 32 bit system


What's the value of the expression above? Is there any difference in running it in 32 or 64 bit (I'm on 32 bit)

Thank you


Solution

  • Value of expression Sizeof(const char **) is 8 on 64 bit machine and 4 and 32 bit machine.

    Edit :

    1 byte = 8 bits

    64/8 = 8 bytes and 32/8 = 4 bytes.