Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct A
- {
- int data;
- };
- int main( void )
- {
- {
- A a;
- a.data = 4;
- }
- cout << "Hello World" << endl;
- return 0;
- }
- struct A
- {
- int data;
- };
- int main( void )
- {
- A * b;
- {
- A a;
- a.data = 4;
- b = &a;
- }
- cout << b->data << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement