Programs On Strings Strings – Theory and Programs [Learn to code] What is String? What are inbuild functions for processing string and different programs on Strings.Prashant ChaudhariFebruary 5, 2018
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 094. Write a program to check if the given string is palindrome or not E.g. NITIN, LIRIL, MALAYALAM. #include<stdio.h> #include<conio.h> #include<process.h> main() { int i,j,len=0; char *s1,*s2; clrscr(); printf("Enter…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 093. Write a program to reverse the given string in C language #include<stdio.h> #include<conio.h> main() { int i,j,len=0; char *s1,*s2; clrscr(); printf("Enter the string ...."); scanf("%s",s1); for(i=0;s1!='\0';i++)…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 092. Write a program to count all vowels present in the string in C language #include<stdio.h> #include<conio.h> main() { int i,vowel=0; char *s; clrscr(); printf("Enter the string 1...."); scanf("%s",s); for(i=0;s!='\0';i++)…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 091. Write a program to compare two strings in C language #include<stdio.h> #include<conio.h> #include<process.h> main() { int i; char *s1,*s2; clrscr(); printf("Enter the string 1...."); scanf("%s",s1);…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 090. Write a program to count no, of alphlabets, digits, special symbols in C language #include<stdio.h> #include<conio.h> main() { int i,alphabets=0,digits=0,symbols=0; char *s; clrscr(); printf("Enter the string 1...."); scanf("%s",s); for(i=0;s!='\0';i++)…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 089. Write a program to concatinate two strings in C language #include<stdio.h> #include<conio.h> main() { int i,len=0,j; char *s1,*s2; clrscr(); printf("Enter the string 1...."); scanf("%s",s1); printf("Enter…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 088. Write a program to convert givern string to lower case in C language #include<stdio.h> #include<conio.h> main() { int i; char *s1; clrscr(); printf("Enter the string 1...."); scanf("%s",s1); for(i=0;s1!='\0';i++)…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 087. Write a program to convert given string to UPPER CASE in C language #include<stdio.h> #include<conio.h> main() { int i; char *s1; clrscr(); printf("Enter the string 1...."); scanf("%s",s1); for(i=0;s1!='\0';i++)…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 086. Write a program to copy a string into another string in C language #include<stdio.h> #include<conio.h> main() { int i; char *s1,*s2; clrscr(); printf("Enter the string 1...."); scanf("%s",s1); for(i=0;s1!='\0';i++)…Prashant ChaudhariSeptember 18, 2012