Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 6 (Q.No. 31)
31.
The _____ function returns the uppercase equivalent of a character
caseupper
charupper
toupper
uCase
upper
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Gagan said:   1 decade ago
#include <stdio.h>

int main() {

printf( "Upper case of A is %c\n", toupper('A'));
printf( "Upper case of 9 is %c\n", toupper('9'));
printf( UpperLower case of g is %c\n", toupper('g'));
return 0;
}
It will proiduce following result:

Lower case of A is A
Lower case of 9 is 9
Lower case of g is G

Post your comments here:

Your comments will be displayed after verification.