Input in Array Data structure by R4R Team

Array is the collection of different values having same data type.
-We have a integer Array that having all integer values.
-Character array is known as String.
-Here we Try to take input in the Array


#include < stdio.h>
int main()
int arr[100]; //array
int n,i;
printf("Enter number of element you want in array\n")
printf("Enter elements in array\n");
// input of n elements in array
for(i=0;i< n;i++)
return 0;


Enter number of element you want in array
Enter elements in array
3 65 1 23 0

-In this program, firstly we take a input of the number that decide the number of value in array.
-Then using the loop we take input in array.

Leave a Comment:
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!