Skip to content

Instantly share code, notes, and snippets.

@AndyNovo
Created September 21, 2016 15:07
Show Gist options
  • Save AndyNovo/2ecef4dd1f629b2eb2f243b7ffa52cef to your computer and use it in GitHub Desktop.
Save AndyNovo/2ecef4dd1f629b2eb2f243b7ffa52cef to your computer and use it in GitHub Desktop.
#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
int* x = (int*) malloc(32);
x[0] = 23;
cout << x[0] << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment