C Output Prediction Hard +35 XP
sizeof Operator
On a 64-bit system, what is the output?
CRead-only
printf("%zu", sizeof(int *));What is the output?
Show answer and explanation
Answer: 8
On 64-bit systems, all pointers are 8 bytes regardless of the type they point to.
Hint: Pointer size depends on system architecture.
What this challenge tests
Output Prediction in C: sizeof, pointers, memory.