+ 1
Why does this program prints extra garbage values
Its a program to convert lower case letter to upper case https://code.sololearn.com/c1kzi6x6nPWg/?ref=app
3 Respuestas
+ 7
You need to change your for loop condition to this:
for(n=0;s[n]!='\0';n++){ }
you need to use: '\0' instead of '0'
also use: int main()
not: void main()
Here's the fix code
https://code.sololearn.com/cMZghU7Zx06s/?ref=app
+ 1
You wrote s[I] != 0 but it should be s[i] != '\0' ...
+ 1
Oh thanks