3. Write a c program to delete the all consonants from given string.
9. Write a c program to print the string from given character.
10. Write a c program to reverse a string
11. Reverse a string using recursion in c
12. String concatenation in c without using strcat
13. How to compare two strings in c without using strcmp
14. String copy without using strcpy in c
15. Convert a string to ASCII in c
10. Write a c program to reverse a string
11. Reverse a string using recursion in c
12. String concatenation in c without using strcat
13. How to compare two strings in c without using strcmp
14. String copy without using strcpy in c
15. Convert a string to ASCII in c
4 comments:
#include
#include
int main()
{
char str[20];
int i=0;
printf("Enter a string: ");
gets(str);
for(i=0;i<=strlen(str);i++)
{
if(i==0)
printf("%c",str[i]);
else if(str[i]==' ')
printf("%c",str[i+1]);
}
}
/*OUTPUT*/
Enter a string: Tejya Pranthi
TP
Can you please explain these.I really need it's explanation because these questions was given by my institute for the project work.
a
YES I TOO
Post a Comment