I'm making a program that will input for a string and capitalize the content of the string..can u help me figure out what's wrong in my code:
Code:#include<stdio.h> #include<ctype.h> int i; main() {char namea[100]; clrscr(); scanf("%d",namea[i]); for(i=1;i<=namea[i];i++){ namea[i]=toupper(namea[i]); printf("%s",namea[i]); } getch(); }
please help me..