Struct fl has no member named sub
<pre><code>#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;

struct fl{    
  char sub[3] = {"Math","Science","ICT"};    
};

int main()
{    
    int i;

    struct fl floatp;

    for (i = 0; i &lt; 3; ++i){    
        printf (" %s",floatp.sub[i]);    
    }

    return 0;
}
</code></pre>

<p>I am getting this error "struct fl has no member named sub" on the 11th line. But i do have a member named 'sub'. What am i doing wrong?</p>