strupr in C
I was using a string manipution function that uppercase the provided string //strupr(); But for unknown reasons I can't use pointer based string 🤔 like char *="all clear"; however char array works like char[10]="all clear"; And when I combine both the methods it shows no output on sololearn ide. https://code.sololearn.com/cz88Y6DaHLEI/?ref=app Please help me to understand this . I used cxxdroid and c4droid also they give errors by both the methods (char * and char [10] ) saying that strupr not defined 🤔 Subquestions : Well in C we don't have string data type so we use char array or char pointers . So... should I even use char pointers for strings ? Because this is deprecated in C++ as per my knowledge. Edit: < 12 sep 2019 code link removed adding code below > #include<stdio.h> #include<string.h> int main() { char s1[10]="All clear"; printf("%s",strupr(s1)); /* char *s2="All clear"; printf("%s",strupr(s2)); */ //uncomment above statements . return 0; }