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

Popular posts from this blog

How to Understand Programming and Learn Better ?

2 Dimensional Character Array in C and C++

Arrow Functions in Javascript