#include <stdio.h>
#include <conio.h>
char string( char str2[10] );
void main()
{
int i;
char str1[10];
clrscr();
printf(" \n \n Enter 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 \n The String Is \t ");
for( j = 0; j <= 9; j++ )
printf(" %c ", str2[j] );
return 1;
}
OUTPUT:
Enter The String: Interview
The String Is: Interview
ALSO CHECKOUT:
-- C Program To Find The Length Of A String.
-- C Program To Concatenate Two Strings.
-- C Program To Compare Two Strings.
-- C Program To Swap Two Strings.
-- C Program To Swap Two Strings Using strcpy() Function.
-- C Program To Sort A Given Number Of Strings Using strcmp() Function.
-- C Program To Check Whether A String Is Palindrome Or Not.
-- C Program To Print The Reverse Of A String.
-- C Program To Join Two Strings.
-- C Program To Display Array Of Strings.
-- C Program To Convert String To An Integer Using atoi() Function.
-- C Program To Accept A String & Display In Reverse.
-- C Program To Accept A String & Display Its Alternate Characters.
-- C Program To Accept A String & Display Alternate Characters In Either Case.
-- C Program To Accept A String & Display It's Substring.
-- C Program To Accept A String & Display It's Alternate Characters In Reverse.
-- C Program To Accept Two Strings & Display The Largest String.
-- C Program To Accept A String & Display Vowels.
-- C Program To Accept A String & Display Number Of Vowels.
-- C Program To Accept A String & Display Number Of Each Vowels.
-- C Program To Accept A String & Find Out Whether This Character Is Present In The String.
-- C Program To Find Out The No. Of Times A Character Is Present In The String.
-- C Program To Display Array Of Strings.
-- C Program On Strings Into Array Of Pointers.
... Back To C++ Programs Index
... Back To C++ FAQ's Index
... Back To C Programs Index
... Back To C FAQ's Index
... Back To HR Interview Index
Comments
Post a Comment
Please share your opinions and suggestions or your experience in the comments section. This way we can all help each other...
Experienced guys can share their resumes at admin@interview-made-easy.com