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
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 085. Write a program to print length of a given string in C language #include<stdio.h> #include<conio.h> main() { int i,len=0; char *s; clrscr(); printf("Enter the string...."); scanf("%s",s); for(i=0;s!='\0';i++) len++;…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 084. Write a program to accept two strings and concatenate them in C language #include<stdio.h> #include<conio.h> #include<string.h> main() { char *s1,*s2; clrscr(); printf("Enter string 1 : "); scanf("%s",s1); printf("Enter…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 083. Write a program to accept two strings and compare them in C language #include<stdio.h> #include<conio.h> #include<string.h> main() { char *s1,*s2; clrscr(); printf("Enter string 1 : "); scanf("%s",s1); printf("Enter…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 082. Write a program to accept a string and print no. of aphlabets, digits, special symbols present in it in C language #include<stdio.h> #include<conio.h> #include<ctype.h> main() { char *s; int i,alphabets=0,digits=0,symbols=0; clrscr(); printf("Enter string : "); scanf("%s",s);…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On StringsResources 081. Print string in reverse,its length,in uppercase,lowercase and copy into another string #include<stdio.h> #include<conio.h> #include<string.h> main() { char *s1,*s2; clrscr(); printf("Enter string : "); scanf("%s",s1); printf("Reverse String…Prashant ChaudhariSeptember 18, 2012
Learn C ProgrammingLearn ProgrammingPrograms On ArraysResources 080. Write a program to accept a M x N matrix and print it’s transpose matrix in C language #include<stdio.h> main() { int i,j,m,n,a; printf("Enter order of matrix :\n"); scanf("%d%d",&m,&n); printf("Enter matrix elements.....\n"); for(i=0;i<m;i++)…Prashant ChaudhariSeptember 18, 2012