2D [STRING] IN C
------------------
2D STRING
-------------------
WHAT IS 2D STRING
.when we save data by string in 2d array it is called as 2d string
.if we want to save data in group by 2d array we use 2d string
==========
RUN screen
MEMORY STRUCTURE
^^^^^^^^^^^^^^^^^
SOURCE CODE
*****************
#include<stdio.h>
#include<conio.h>
main()
{
// CODE BY [UB] //
char s[3][10];
int i;
clrscr();
printf("enter three names= ");
for(i=0;i<=2;i++)
gets(s[i]);
printf("^^^^^^^^");
for(i=0;i<=2;i++)
printf("\n%s",s[i]);
getch();
}
#########################
ALL RIGHTS GOES TO [UB CODES]
#########################
\---------------------------------------------/