DEV Community

Discussion on: Data structures in C: Stack

Collapse
 
josethz00 profile image
José Thomaz • Edited

Thanks for the feedback, I already used void* but never uint64_t I will research about it.

Collapse
 
pauljlucas profile image
Paul J. Lucas

The reason for using uint64_t is because it's guaranteed to work on all platforms, specifically 32-bit platforms where sizeof(void*) is 4 — uint64_t guarantees 8.