hey everybody, ive just started studying the language, im familiar with java so people told me its relatively easy... well, i have couple of questions if someone is willing to help.

in this example:

for(n=0,.......)

n=10*n+(s[i]-'0');

why is it written s[i]-'0'? what is the meaning behind it?

and another question is there any way to transfer an int array in base 10 to base 2? and if there is what is the process?

tnx for any help.