Practice Program Program to arrange 2d string in Dictionary order. Solution: #include<stdio.h> #include<string.h> void main () { char s[ 3 ][ 10 ]; char s1[ 20 ]; int i,j; for (i= 0 ;i< 3 ;i++) { pr… Read more
Practice Program Program to arrange 2d string in Dictionary order. Solution: #include<stdio.h> #include<string.h> void main () { char s[ 3 ][ 10 ]; char s1[ 20 ]; int i,j; for (i= 0 ;i< 3 ;i++) { pr… Read more
Practice Program Program to convert string with uppercase letter. Solution: void main () { int i; char s[ 20 ]; printf( "Enter the string: " ); gets(s); printf( "String is: " ); puts(s); for… Read more
Practice Program Program to convert string with lowercase letter. Solution: void main () { int i; char s[ 20 ]; printf( "Enter the string: " ); gets(s); printf( "String is: " ); puts(s); for… Read more
Practice Program Program to Concate a String to other String. Solution: void main () { int i,j,k; char s1[ 20 ],s2[ 20 ]; printf( "Enter the first string: " ); gets(s1); printf( "Enter second string: " ); gets(s2); p… Read more
Practice Program Program to Count the vowels in a String. Solution: #include<stdio.h> void main () { int i,count= 0 ; char s[ 20 ]; printf( "Enter the string: " ); gets(s); printf( "String is:" … Read more
Practice Program Program to arrange string characters in Non Alphabetical order. Solution: void main () { int i,j; char ch,s[ 20 ]; printf( "Enter the string: " ); gets(s); printf( "\nString is :" ); … Read more
Practice Program Program to arrange string characters in Dictionary order. Solution: void main () { int i,j; char ch,s[ 20 ]; printf( "Enter the string: " ); gets(s); printf( "\nString is :" ); put… Read more
Practice Program Program to check string is Palindrome or Not. A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar or the number 10801. Solution: void main (… Read more
Practice Program Program to check string is Palindrome or Not. A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar or the number 10801. Solution: void main (… Read more
Practice Program Program to Reverse a string. Solution: void main () { char ch,s[ 20 ]; //storing length of string in variable l. int i; printf( "Enter the string: " ); gets(s); int l = strlen(s); for (i= 0 ; i<(… Read more
, Practice Program Program of Calculating length of string. Solution: void main () { char s[ 20 ]; int length; //taking string as input from the user. printf( "Enter the string: " ); gets(s); for (length = 0 … Read more
Practice Program Program of Finding Element in an array. Solution: void main () { int i,element,a[ 10 ],n; printf( "\nEnter the number of element: " ); scanf( "%d" ,&n); //taking array element as input fro… Read more
Follow Us