title: How would this C struct be translated into Ada
body: <p>I'm pretty new to Ada and I'm having difficulty figuring out how to use the structs. What would the C structs below look like when they are converted into Ada?</p>
  
  <p>These are the structs I have:</p>
  
  <pre><code>struct dataT
  {
      int m;
  };
  
  struct stack
  {
      int top;
      struct dataT items[STACKSIZE];
  } st;
  </code></pre>
  
  <p>How would this statement be represented in Ada?</p>
  
  <pre><code>st.items[st.top].m
  </code></pre>