Scanf_s error with array
<p>I have a problem with my code. Practically when the compiler performs the following line</p>

<pre><code>scanf_s("%c", macchina[i].marca, 50);
</code></pre>

<p>Visual studio gets me this error. It gives me the same problem with the function get_s.</p>

<p><img src="https://i.stack.imgur.com/aun10.png" alt=""></p>

<p>I cannot understand what is wrong with the code. Thanks for your support</p>

<p>This is my code</p>

<pre><code>#include &lt;stdio.h&gt;

int main(void) {

    struct automobile{
        char *marca;
        int modello;
        int vendute;
    };

    struct automobile macchina[5];

    for (int i = 0; i &lt; 5; i++){
        printf("Inserisci marca: ");
        scanf_s("%c", macchina[i].marca, 50);
    }
}
</code></pre>