Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#include <cstdio>
#include <cstdint>
int main() {
int size = 10;
void *ptr = (void*) 1000;
unsigned *ptr2 = (unsigned*) ptr + size;
printf("ptr: %lu ptr2: %lu \n", (uintptr_t) ptr, (uintptr_t) ptr2);
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment