#toupper

6 messages · Page 1 of 1 (latest)

astral ice
#
int main(){
    char vactype;
    printf("Enter vacation type: ");
    scanf("%c", &vactype);

    toupper('%c',vactype);

    printf("You entered %c", vactype);
};

error:

     toupper('%c',vactype);
             ^~~~
continAssment.c:175:5: error: too many arguments to function 'toupper'
     toupper('%c',vactype);
     ^~~~~~~```
long gustBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

stark plinth
#

a char can only be a single character

#

and look up the functions you use before asking for help 🤦‍♂️

#

if you did you would see it doesnt take multiple arguments

long gustBOT
#

This question thread is being automatically closed. If your question is not answered feel free to bump the post or re-ask. Take a look at !howto ask for tips on improving your question.