115k views
1 vote
If toupper's argument is already uppercase, it is returned as is, with no changes.

A. True
B. False

1 Answer

3 votes

Final answer:

The toupper function returns uppercase strings as is.

Step-by-step explanation:

The subject of this question is Computers and Technology and the grade level is High School. The question pertains to the behavior of the toupper function.



The correct answer is A. True. If the argument of the toupper function is already uppercase, it will be returned as is, without any changes. For example, if you pass in the string 'HELLO' to toupper, it will be returned as 'HELLO'.



Some other examples are:

1. toupper('HELLO') -> 'HELLO'

2. toupper('GREETINGS') -> 'GREETINGS'

User Spektre
by
8.7k points