hai everyone, i have been in a small confusion, can any one correct me please. the follwing programe dosn't output more than 3 char
can any one tell me whats going worng in the code and please correct me pleaseCode:#include<stdio.h> char upcase(char []); int main() { char str[25]; printf("Enter a string\n?"); fgets(str,sizeof(str),stdin); upcase(str); getchar(); } char upcase(char *p) { static int i=0; if(*(p+i)=='\0') return; else { printf("%c",*(p+i)-32); return upcase(p+i++); } }