ARRAY in C Language:
(1) An Array is a collection of variables of the same type that are referenced by a common name. It is used for storing multiple values in one variable.
(2) Sample C language code and its output, as shown:

#include <stdio.h> #include <conio.h> //Assign 1-10 values in one variable x container having array of 10 values int main() { int x[] = {1,2,3,4,5,6,7,8,9,10}; //making variable into array inti; for (i =0;i <10;i++) { printf(” %d \n”,x[i]); } getch(); return 0; } |
(3) After that go to the “Build” menu and select the “Build” option for publishing the code as shown.

(4) After building the code, press the “Run” button, as shown.

(5) After pressing the “run” button, the output screen is opened, as shown.

DO WHILE Loop in C Language do-while Statement (C)– Microsoft Docs If Else condition in C Language Use of STORED PROCEDURES in SQL Use of DATALENGTH Function in SQL |