title: Pointer Address/Dereferencing operator
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
    int y = 4; //This is a variable stored in the stack
    printf("\n Address of variable y is :%p\n", &amp;y); // This is the address of the variable  y
    int *addressOfVariable = &amp;y; //This is a pointer variable, a P.V stores the memory address of a variable
    //Read the value stored in a memory address
    int memoryValue = *addressOfVariable; //* is a dereference operator, it reads the value stored in a memory address and stores it in another variable
    //Update the value stored in the memory address
    *addressOfVariable = 10;
    _getch();
    return 0;
  }
  </code></pre>
  
  <p>Can someone please tell me what's wrong with this code? As is clear from the comments, I am just trying to implement the use of pointers and pointers variables. Among the other errors, I am getting a "Illegal Indirection error" in the (*addressOfVariable=10) code.</p>
  
  <p>Thank You for your help.</p>