dck
Junior Member level 1
how can i store strings into an array and display it???
here is the half-way program.. i got stucked..
thnx...
#include<stdio.h>
main()
{
char name[50];
int i;
for(i=0;i<5;i++)
{
printf("Please enter name:");
gets(name);
}
for(i=0;i<5;i++)
printf("%s\n", name);
}
here is the half-way program.. i got stucked..
thnx...
#include<stdio.h>
main()
{
char name[50];
int i;
for(i=0;i<5;i++)
{
printf("Please enter name:");
gets(name);
}
for(i=0;i<5;i++)
printf("%s\n", name);
}