0

I am developing one project in C language,In it several records are there... By maintaing those kind of records,I easily store the record name {For eg. filename 1 filename2 means i know how to store it by using 2 Dim. array but i dont know how to print it or read it in a output}.If it okay means send the reply ASAP


Send ur ans to ... Plz...
<snip>
or
<snip>

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by karthisargunan
0

suppose the array is :
char arr[7][14]; this means you can store 7 elements which are individualy an array of 14 elements.
you may take input like this

for(i=0;i<7;i++)
scanf("%s", arr[i]); // or gets(arr[i]);

and print like this

for(i=0;i<7;i++)
printf("%s ", arr[i]); // or puts(arr[i]);

ex. output at run time
Enter the string:
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saterday
and you will notice the output
Sunday Monday Tuesday Wednesday Thursday Friday Saterday

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.