I could just save that in a char array, but I want to save some memory (because user can input a million digit long binary string) so I thought I could just break the whole string into several integer numbers
(ex. shortintlong...)
This will also save processing time of the function I want to do on those two but let's leave that aside.
So how can I convert STDIN to for example int array?
I mean, scanf and cin would have to copy the user input, char per char, into the char array anyway, why not recycle that?