C – Structures and Pointers
In this tutorial, you will learn how to use pointers in structure and how to access the members of structure using pointer. But before, if you do not know about structure and pointers click the link below. struct in C …
In this tutorial, you will learn how to use pointers in structure and how to access the members of structure using pointer. But before, if you do not know about structure and pointers click the link below. struct in C …
In C programming, the structure is user-defined data types that allow us to store the combination of different data types together. All the different data type variables are represented by a single name. As we have studied earlier that Array …
strchr() function in C is used to search the stated character in a string. It searches the string for the character and stops when the first time the character is found. And if the string needs to be printed, only …
strupr() function in C String converts all the characters present in a given string to Uppercase. The strupr() function is defined in the header file string.h. It takes a single argument that is the name of the string and is …
strlwr() function in C String converts all the characters present in a given string to Lowercase. The strlwr() function is defined in the header file string.h. It takes a single argument that is the name of the string and is …
Reversing a string in C can be done by strrev() function in a single line. This function simply reverses the given string in a program. The strrev() function is defined in the header file string.h. It takes a single argument …
strcmp() function is used to compare two string to each other and returns an integer value. The strcmp() function is defined in the header file string.h. It takes two arguments, the name of the first string and the second string. …
strcat() function is used to combine two string together to form a single string in a program. It concatenates two strings and the final result is returned to the first string. The strcat() function is defined in the header file …
strcpy() function in C is used to copy the contents from one string (source) to another string (destination). The strcpy() function is defined in the header file string.h. It takes two arguments, destination and source. The source is from where …
strlen() function in C is used to calculate the length of the given string. It counts the number of characters present in a String excluding the null character ‘\0‘. The strlen() function is defined in the header file string.h. It …