Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. int* a;
  2. int* b;
  3.  
  4. a = (int*)calloc(1, sizeof(int));
  5. b = (int*)calloc(5, sizeof(int));
  6.  
  7. cout << sizeof(a) << endl;
  8. cout << sizeof(b) << endl;
  9.  
  10. cout << sizeof(*a) << endl;
  11. cout << sizeof(*b) << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement