title: c++ error "Braces around scalar initializer for type int*"
body: <p>Error: braces around scalar initializer for type int* </p>
  
  <p>I'm trying to pass an array to the function but I keep getting this error in the initialization step.</p>
  
  <p>How can I fix this?</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  void func (int *p[4]);
  int main()
  {
  int *p[4]={ {1,4,5},{3,5,6},{6,6,2},{6,5,3}};   //The error appears here                                                                   
  func(p);
  return 0;
  }
  void func (int *p[4])
  {
  for(int i=0;i&lt;4;i++)
  {
  for(int j=0;j&lt;1;j++)
  {  cout&lt;&lt;p[i][j]; }
  }
  cout&lt;&lt;" \t";
  }
  </code></pre>