Can't read array of structure in C <p>I am trying to read members of an object like in the code below. The issue is that the code can't read the second member (car[i].model) in the array and the third one (car[i].price), only the first one (car[i].manufacturer).</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;conio.h&gt; struct machine { int price; char manufacturer[30]; char model[30]; }; int main() { int i = 0, n; printf("Introduce number of cars: "); scanf_s("%d", &amp;n); struct machine car[100]; for (i = 0; i &lt; n; i++) { printf("Data of the car nr. %d:\n", i+1); printf("Manufacturer: "); scanf_s("%s", car[i].manufacturer); printf("Model: "); scanf_s("%s", car[i].model); printf("\n"); printf("Price: "); scanf_s("%d", &amp;car[i].price); printf("\n"); } for (i = 0; i &lt; n; i++) { printf("Data of the car nr. %d:\n", i + 1); printf("Manufacturer: %s\n", car[i].manufacturer); printf("Manufacturer: %s\n", car[i].manufacturer); printf("Model: %s\n", car[i].model); printf("Price %d\n", car[i].price); } _getch(); } </code></pre>