Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. struct A
  2. {
  3. int data;
  4. };
  5.  
  6. int main( void )
  7. {
  8. {
  9. A a;
  10. a.data = 4;
  11. }
  12.  
  13. cout << "Hello World" << endl;
  14. return 0;
  15. }
  16.  
  17. struct A
  18. {
  19. int data;
  20. };
  21.  
  22. int main( void )
  23. {
  24. A * b;
  25. {
  26. A a;
  27. a.data = 4;
  28. b = &a;
  29. }
  30.  
  31. cout << b->data << endl;
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement