[ back to toc ]

functions

Date: 2002/03/12 09:34

Q:
hello

could you please give me an example of toupper(c)function.
A:
toupper function converts a lower case character to upper case. For
example:

#include <stdio.h>
#include <ctype.h>
main(){
printf("%c",toupper('a'));
}

will print A which is the upper case converted a.

Regards,
Peter

[ back to toc ]