#include<stdio.h>
int main()
{
char arr[100], i;
int n;
printf("Enter the size of the Array: ");
scanf("%d", &n);
printf("\nEnter the Strings in the Array\n");
for(i=0; i<n; i++)
{
scanf("%s", &arr[i]);
}
for(i=0; i<n; i++)
{
printf("%s", arr[i]);
}
return 0;
}
Why does the execution of this code just stop after taking the input of string variables? Why isn't it printing the string in array?