thats because that is a part of a small app, I could have done it like this. operation(char input[100], int aa) but i find global variables easyer in this case.
now one last qusetion: why dose this not work:
I also tryed:Code:if(input[aa]==' ') { output[bb]='0'; bb++; }
since 32 is the acsii code for "space" i think.Code:if(input[aa]==32) { output[bb]='0'; bb++; }