Skip to content

Instantly share code, notes, and snippets.

@ogroleg
Created October 4, 2015 11:31
Show Gist options
  • Save ogroleg/8c1f4ac7eab7e74f5df6 to your computer and use it in GitHub Desktop.
Save ogroleg/8c1f4ac7eab7e74f5df6 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main(){
int* q=new int[5];
int i=0;
i[q]=2;
cout<<q[0];
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment