Quote Originally Posted by tabstop View Post
I agree that that's not a good reason to make them global.
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:
Code:
    
if(input[aa]==' ')
     {
      output[bb]='0';
      bb++;
     }
I also tryed:
Code:
 if(input[aa]==32)
     {
      output[bb]='0';
      bb++;    
     }
since 32 is the acsii code for "space" i think.