Hello there, can anyone refer me to what might be an "extensive" guide of formatted input types...
I'm inputting a 4 digit integer, and I need to access each digit individually. I could convert them and put them in a character array, and then recast them as integers to do math with each individual digit. But I'm sure my professor wants me to do it with "%d"... just can't find anywhere how to access each digit individually. I've tried "%d2" for instance, or "%2d"...I've also tried something like...
Code:
printf("%d", 2, encodingInt);
to see if it would print just the number in the second spot...
Maybe it's just not possible this way.
(Just starting C class...)