Using Two Dimensional Character Array
Using Two Dimensional Character Array
#include<stdio.h>
void main()
{
char wdays[7][10],row;
for(row=0;row<7;row++)
{
printf("Enter week days ;");
scanf("%s",wdays[row]);
}
printf("\n Week days are :\n\n");
for(row=0;row<7;row++)
{
printf("\n%s\n",wdays[row]);
}
}//end of main
Comments
Post a Comment