title: union inside a struct
body: <p>So, I have this code: </p>
  
  <pre><code> #include &lt;stdio.h&gt;
   #include &lt;stdlib.h&gt;
  
   struct lista{ 
      union info{
         double operando;
         char operador;
      }info;
   };
  
   typedef struct lista Lista;
  
   int main(){
  
   printf("char: ");
   scanf("%c", Lista.info.operador);
   getchar();
   printf("%c\n", Lista.info.operador);
   printf("double: ");
   scanf("%lf", Lista.info.operando);
   getchar();
   printf("%lf\n", Lista.info.operando);
  
   return 0;
  
   }
  </code></pre>
  
  <p>When i try to compile it, i get this error:</p>
  
  <blockquote>
    <p>error: expected expression before 'Lista'</p>
  </blockquote>
  
  <p>Does anyone know what I'm doing wrong?</p>