Array notes
What is Array?
To store the set of
value continuously of similar data –type.
Syntax of Array
data-type variable name[size of array];
Int a[5];
how
to put value in array at compile time.
Int a[]={23,45,67,89,90};
Initialization of Array at runtime
Using for loop
Int a[100],i=10;
For(i=0;i<10;i++)
{
scanf(“%d”,&a[i]);
}
For(i=0;i<10;i++)
{
printf(“%d”,a[i]);
}
Learn more about array, watch the video to click the link
Comments
Post a Comment