title: Printf the current address in C program
body: <p>Imagine I have the following simple C program:</p>
  
  <pre><code>int main() {
  
  int a=5, b= 6, c;
  c = a +b; 
  return 0;
  }
  </code></pre>
  
  <p>Now, I would like to know the address of the expression c=a+b, that is the program address
  where this addition is carried out. Is there any possibility that I could use printf?
  Something along the line:</p>
  
  <pre><code>int main() {
  
  int a=5, b= 6, c;
  printf("Address of printf instruction in memory: %x", current_address_pointer_or_something)
  c = a +b; 
  return 0;
  }
  </code></pre>
  
  <p>I know how I could find the address out by using gdb and then info line file.c:line. However, I should know if I could also do that directly with the printf.</p>