Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- using namespace std;
- struct a
- {
- int i;
- }*b;
- int main() {
- b->i=1;
- a*c=new a(*b);
- cout << c->i;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement