How to convert lowercase letters to uppercase using strupr() in C

1 Answer

0 votes
#include <stdio.h>
#include <string.h>
 
int main()
{
    char s[] = "c c++ java", *p;
    
    p = strupr(s);
    
    printf("%s\n", p);
        
    return 0;
}


/*
run:
 
C C++ JAVA

*/

 



answered May 25, 2018 by avibootz
...