title: Dynamic jump to label in C
body: <p>I would like to display the output - numbers 1 to 5, followed by 4-5 infinitely. Is there any way i can pass the value of i(4) instead of the character i in goto1. Or is there any other efficient way of realizing this without illustrating all the options as in switch(i.e case 1: goto1(c1) ,etc..).</p>
  
  <p>The main aim is to jump to a statement whose label is computed within the program.</p>
  
  <pre><code>#define goto1(i) \
  goto c##i
  
  int main(){    
      c1 : printf(" num is 1 \n");
      c2 : printf(" num is 2 \n");
      c3 : printf(" num is 3 \n");
      c4 : printf(" num is 4 \n");
      c5 : printf(" num is 5 \n");
  
      int i=4;
      goto1(i);
  }
  </code></pre>