title: How to create a list in C using list()? (Trying to save and extract elements to/from the list)
body: <p>How can I create a list in C using list()? Not a linked list, just a regular list of elements. I am coming from python where I can just use list = []. But the only thing that turns up when I Google "list in C" are linked lists. It appears that there is a function list() that I am assuming creates a list. I cannot figure out how to extract the first and second values:</p>
  
  <pre><code>    int L = list(1,2,3,4,5);
      int a = L[0];
      int b = L[1];
  </code></pre>
  
  <p>I need to make a list in C to store two values, a numerator (n) and a denominator (d). I am creating a fraction calculator and I want n and d to be the two values I store in the fractions (lists). I don't want to write a program with f1 = (n1, d1) through fk = (nk, dk).</p>