Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Breaking down letters of a string in "C"


ghost's Avatar
0 0

Hey all,

I am trying to have a number inputted as a string such as "1011", then breaking that string down as… "1" "0" "1" "1", and storing each individual part of the string into an array.

Could anyone help me out here as to how I would go about doing that? I really need help, I've been struggling for awhile now.

Thank you all in advance.


ghost's Avatar
0 0

Uhm, use a char and then take it out one by one ([0],[1],[2],[3],etc.).