title: To find square by reference of pointers
body: <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  void square (int *);
  
  int main () {
  
      int number = 0;
  
      cout &lt;&lt; " To find the square of the number entered by the user ";
      cin &gt;&gt; number;
      cout &lt;&lt; square (&amp;number);
  
      return 0;
  }
  
  void square (int *x) 
  {
      *x = *x ** x;
  }
  </code></pre>
  
  <p>can anyone tell what is the error in this code,because it gives me kind of big lengthy weird error</p>