title: How to print the number of times the program is executed?
body: <p>I want to write a simple C program which would print the number of times that program itself got executed (by user).</p>
  
  <p>for example,</p>
  
  <p>output should be
  <code>You are executing this program 3rd time</code></p>
  
  <p>I first thought of using file handling but later came to know about <code>volatile</code> and <code>register</code>. </p>
  
  <p>Is there any use of <code>volatile</code> or <code>register</code> in this context?</p>