title: Is there any function in C which can store memory address of an array to a variable? What type of variable will store this address?
body: <p>I used the following code to do the same. Is this the correct way to do the same?</p>
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main() {
      int ar[512]={0};
      char hex[100]=&quot;0xf&quot;;
      sscanf(hex,&quot;%x&quot;,&amp;ar);
      printf(&quot;\n%s&quot;,hex);
  }
  </code></pre>
  <p>Basicly I need to store this hexadecimal value into a variable as a string.</p>