title: binary counter in C
body: <p>I am busy with a project where the following function needs to be implemented in C</p>
  
  <pre><code>void logic_circuit(int inputs[4],int outputs[2])
  </code></pre>
  
  <p>A counter needs to be created since all the 4 bit combinations needs to be inserted into this function...</p>
  
  <pre><code>void logic_circuit(int inputs[4],int outputs[2])
  {
        //some calculations
        outputs[0] = ...
        outputs[1] = ...
  }
  
  //allocate memory
  int inputs[4];
  int outputs[2];
  
  for(0000 to 1111)
  {
       logic_circuit(0000,outputs);
  }
  </code></pre>
  
  <p>I have been searching the web intensively but unfortunately I was'nt able to find anything usefull.Does anyone have an idea on how to tackle this issue?</p>