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
It takes a single argument that is the name of the string and is written as follows.
C Program for strlwr() function
char str = "SIMple2CODe.CoM";
printf("Original String: %s", str);
printf("Lowercasing all the Characters: %s", strlwr(str));
Original String: SIMple2CODe.CoM
Reversed str String: simple2code.com
Don’t be alarmed if it does not run on your compiler. It is just that some functions like strlwr(), which are only available in ANSI C (Turbo C/C++) and are not available in the standard C-GCC compiler.
In the C/C++ programming language, the structure is user-defined data types that allow us to store the combination of different data types together. All the …Read More
Static s a keyword in C++ that is when used with different types gives different meanings. static keyword can be used with variables in a …Read More
Templates in C++ are the powerful feature that allows us to write generic programs (generic classes and generic functions). A single class or function is …Read More
There are private and protected members in a class that is inaccessible from outside of the class, constituting one of the concepts of object-oriented programming …Read More
In C++, this is a keyword that refers to the current instance of a class and this pointer holds the address or points to the …Read More
Inheritance is one of the most important concepts of object-oriented programming. In C++, inheritance is the process of deriving the properties and behaviors of one …Read More