title: C++ Exception:Throwing Arrays and getting array size in catch
body: <p>A Normal function ( say printArray) takes array and its size ( 2 arguments ) to print elements of an array.</p>
  
  <p>How to do the same using exceptions? More exactly, how to pass array size to catch handler ? ( assuming I dont have a const int SIZE declared outside try-catch)
  eg.</p>
  
  <pre><code> //void printArray(int* foo ,int size);
       int foo[] = { 16, 2, 77, 40, 12071 };
     //printArray(foo,5); //OK, function call using array accepts size=5 
      try{
  
          //do something
          throw foo;
  
      }
      catch (int* pa)
      {
          //I have to get array size to loop through and print array values
          //    How to get array size?
      }
  </code></pre>
  
  <p>Thank you in advance</p>