int main() { int *p=0; int a=4; p=&a; int *q=0; q=p; cout << *q; }
int main() { int *p=new int; *p=3; cout<<*p; }
#include<iostream> #include<stdlib.h> using std::cout; int main() { int *p; p = (int *)malloc(sizeof(int)*10000); *p=3; cout<<*p; free(p); }