No, everything is fine, expet for the pus and gets functions, probably becouse I use c++11, and conio.h isn't c++ etx etx blah blah blah. But you may want to put the
s=mytoupper(s);
After the
puts("The string in upper case is :");
becouse there was some weird result on my comp with that, that I can't fugure out.
Never use gets(). Because it is impossible to tell without knowing the data in advance how many characters gets() will read, and because gets() will continue to store characters past the end of the buffer, it is extremely dangerous to use. It has been used to break computer security.
1 2 3 4 5 6
s=mytoupper(s); //the call
//the function
while(*s!='\0')
//...
return s;
You are making 's' to point to the end of the string.