title: how to find 2d array size in c++
body: <p>How do I find the size of a 2D array in C++? Is there any predefined function like <code>sizeof</code> to determine the size of the array?</p>
  
  <p>Also, can anyone tell me how to detect an error in the <code>getvalue</code> method for arrays while trying to get a value which is not set?</p>