<ctype.h> - This header file is used for testing and converting characters.
C String uppercase
Posted on: February 6, 2009 at 12:00 AM
Posted on: February 6, 2009 at 12:00 AM
Whorush: 2 sites by this AdSense ID
C String uppercase
In this section, you will learn how to convert a string value in to uppercase. In the given example, we have define a string in lowercase characters. Therefore, in order to convert the characters of string in uppercase (A to Z), we have used the library function toupper() provided by the header file <ctype.h>.<ctype.h> - This header file is used for testing and converting characters.
Here is the code:
Syntax :
char toupper(char ch);
STRINGUP.C
#include <ctype.h> |
STRINGUP.EXE
No comments:
Post a Comment