Docstoc

program to accept a string & display

Document Sample
program to accept a string & display Powered By Docstoc
					#include<stdio.h>
#include<conio.h>
char string(char str2[10]);
void main()
{
int i;
char str1[10];
clrscr();
printf("\n\nEnter the string\t");
for(i=0;i<=9;i++)
{
scanf("%c",&str1[i]);
}
string(str1);
getch();
}
char string(char str2[10])
{
int j;
printf("\n\nThe string is\t");
for(j=0;j<=9;j++)
{
printf("%c",str2[j]);
}
return 1;
}

}

				
DOCUMENT INFO
Shared By:
Stats:
views:29
posted:11/1/2010
language:English
pages:1
About