Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
iI have a rather newbie question but iI can't figure it out.Lets
Lets say iI have this char array:
char array[] = "10,11,12,1,0,1,0";
How tocan I convert thisit to an array of intsint like this?
int arrayINT[] = {10,11,12,1,0,1,0};
i have rather newbie question but i can't figure it out.Lets say i have this char array:
How to convert this to an array of ints like this?
I have a rather newbie question but I can't figure it out.
Lets say I have this char array:
How can I convert it to an array of int like this?
int arrayINT[] = {"10"10,"11"11,"12"12,"1"1,"0"0,"1"1,"0"0};
int arrayINT[] = {"10","11","12","1","0","1","0"};