Tag: string


C Program to take string as an input

Write a C Program to take a string as input from the user. Basically, we use four methods to take …

C Program to find length of a string

Write a C program to find the length of a string. How to find the length of a string in …

C Program to copy one string to another string

Write a C program to copy one string to another string using a loop and strcpy function. We can use …

C Program to concatenate two strings

C Program to concatenate two strings using loop or strcat string function in C language. How to concatenate two strings …

C Program to convert lowercase string to uppercase

C Program to convert lowercase characters in a string to uppercase characters using loop or strupr string function. How to …

C Program to convert uppercase string to lowercase

C Program to convert uppercase characters in a string to lowercase characters using loop or strlwr string function. How to …

C Program to toggle case of a string

C program to toggle the case of a string using the loop i.e., convert the uppercase alphabets into lowercase …

C Program to count alphabets, digits and special characters in a string

C Program to count alphabets, digits and special characters in a string using loop. How to find number of alphabets …

C Program to count number of vowels and consonants in a string

Write a C Program to count the number of vowels and consonants in a string using loops or an array …