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

2-Dimensional Array through pointer using C++

/*Write a C program that reads N integer numbers and arrange them in ascending order using Bubble sort*/

Use of 2-Dimensional Array in C through Pointer