HElp me, what's wrong with this code?
#include <stdio.h> #include <string.h> int ltou(char str[100]); int main() { char str[100]; scanf("%s", str); // Lower to upper case conversion ltou(str[100]); return 0; } int ltou(char str[100]){ int len= strlen(str); for(int i=0; i<len; i++){ if(str[i]>='a' && str[i]<='z') str[i]= str[i]-32; } printf("\n%s", str); return 0; } I'm getting the following error message timeout: the monitored command dumped core ./Playground/runner.sh: line 84: 11 Segmentation fault timeout "$runtime" "$output" - < "/usercode/inputFile" ion] 10 | ltou(str[100]); | ~~~^~~~~ | | | char ./Playground/file0.c:3:15: note: expected 'char *' but argument is of type 'char' 3 | int ltou(char str[100]); | ~~~~~^~~~~~~~