mardi 24 mars 2015

How can i read an array of char numbers and turn them into int?

If we have:



char v[3]={1,20,3};


Then I believe that



v[0]==1;


and



v[1]==2;


but i want to read it as v[1]=20 and then transoform it into int so i can use it. I need some advice i am a begginer.


Aucun commentaire:

Enregistrer un commentaire