More Programs On Strings Write a program to accept a string and print the string in lower case in C language #include<stdio.h> #include<conio.h> #include<string.h> main() { char *s1; clrscr(); printf("Enter string: "); scanf("%s",s1); printf("String in lower…Prashant ChaudhariSeptember 18, 2012
More Programs On Strings Write a program to accept a string and print the string in upper case in C language #include<stdio.h> #include<conio.h> #include<string.h> main() { char *s1; clrscr(); printf("Enter string:"); scanf("%s",s1); printf("String in UPPER CASE…Prashant ChaudhariSeptember 18, 2012
More Programs On Strings Write a program to accept a string and copy it into another string in C language #include<stdio.h> #include<conio.h> #include<string.h> main() { char *s1,*s2; clrscr(); printf("Enter string 1 : "); scanf("%s",s1); strcpy(s2,s1);…Prashant ChaudhariSeptember 18, 2012
More Programs On Strings Write a program to calculate lenght of a given string in C language #include<stdio.h> #include<conio.h> #include<string.h> main() { char *s1; clrscr(); printf("Enter string : "); scanf("%s",s1); printf("Lenght: %d",strlen(s1));…Prashant ChaudhariSeptember 18, 2012
More Programs On Strings Write a program to accept a string and print the string in reverse order in C language #include<stdio.h> #include<conio.h> #include<string.h> main() { char *s1; clrscr(); printf("Enter string : "); scanf("%s",s1); printf("Reverse String…Prashant ChaudhariSeptember 18, 2012