C String – strupr() function1 min read

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 written as follows.

strupr(string_name);

C Program for strupr() function

Output:

Original String: SimplE2code.Com
Uppercase Characters: SIMPLE2CODE.COM

Don’t be alarmed if it does not run on your compiler. It is just that some functions like strupr(), which are only available in ANSI C (Turbo C/C++) and are not available in the standard C-GCC compiler.


MORE

Keith Number Program in C

In this tutorial, we will write a Keith number in C. It is one of the most asked questions in an interview. Before that, you …
Read More

Keith Number Program in C++

In this tutorial, we will write a Keith number in C++. It is one of the most asked questions in an interview. Before that, you …
Read More

Singly linked list Program C++

In this tutorial, we will write a C++ program to implement singly linked list. In this program, we will create a separate function for each …
Read More

Fascinating Number Program in C

In this tutorial, we will write a C program to check whether the given number is a Fascinating number or not. You may go through …
Read More

Peterson Number in C

In this tutorial, we will learn about the Peterson number and check if the number is Peterson or not in C. What is Peterson Number? …
Read More

Peterson Number in C++

In this tutorial, we will learn about the Peterson number and write a C++ program to check if the given number is a Peterson number …
Read More