SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Test array. Not useful on this type of array, since the
  2. # size/shape is implicitly understood, but a proof-of-consept
  3. # if something like this needs to be checked.
  4. int arr[3][4] = { {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1} };
  5.  
  6. int row = sizeof(arr) / sizeof(*arr);
  7. int col = sizeof(*arr) / sizeof(**arr);
  8.  
  9. delete[] arr;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top