One-Dimensional Array Initialization in C

main()
{
int i=0,num[5];
clrscr();
printf("Enter the numbers:");
while(i<5)
{
scanf("%d",&num[i]);
i++;
}
getche();
}

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.