Skip to content

Instantly share code, notes, and snippets.

@asa55
Created April 3, 2020 20:50
Show Gist options
  • Save asa55/4175dad9a21d148e1f80e3d79c99abd5 to your computer and use it in GitHub Desktop.
Save asa55/4175dad9a21d148e1f80e3d79c99abd5 to your computer and use it in GitHub Desktop.
#include <iostream>
#define LOG(x) std::cout << x << std::endl;
int main()
{
char* buffer = new char[8];
int a = 5;
void* ptr = &a;
LOG(*(int*)ptr);
delete[] buffer;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment