title: Parsing array C++
body: <p>Hello guys how can i do this on C++ (98).
  It's working good on visual studio or something, but on place where i want to use it doesn't work.</p>
  
  <p><a href="https://image.prntscr.com/image/loIxb-YRRiGh9XAFmZ_0dA.png" rel="nofollow noreferrer">https://image.prntscr.com/image/loIxb-YRRiGh9XAFmZ_0dA.png</a></p>
  
  <p>I'm trying to send multiple functions with other values in array like:</p>
  
  <pre><code>Print(xx, parse_array()); // No elements in parsearray all will be 0
  Print(xx, parse_array(25)); // First element [0] will be 25, rest of them 0.
  
  
  
  int * parse_array(int val1 = 0, int val2 = 0, int val3 = 0, int val4 = 0)
  {
      int m_pDataArray[4] = {
          val1, val2, val3, val4
      };
  
      return m_pDataArray;
  }
  
  void Print(bool notImportant, int m_pDataArray[4])
  {
      printf("m_pDataArray 0: %d", m_pDataArray[0]);
      printf("m_pDataArray 1: %d", m_pDataArray[1]);
      printf("m_pDataArray 2: %d", m_pDataArray[2]);
      printf("m_pDataArray 3: %d", m_pDataArray[3]);
  }
  
  Print(true, parse_array(10, 20, 30);
  Print(true, parse_array(10);
  Print(true, parse_array());
  </code></pre>