; program to accept a string & display
Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out
Your Federal Quarterly Tax Payments are due April 15th Get Help Now >>

program to accept a string & display

VIEWS: 29 PAGES: 1

  • pg 1
									#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;
}

}

								
To top