What I am trying to accomplish here is to split a long integer apart so I can look at its first, last, and center digits. What I am currently using is this:
int main() {
long i, t[1024];
i = 100;
while (i < 150) {
t = i; // My attempt at converting the long into an array.
printf("%ld\n", t[2]);
i += 1;
}
Any help would be appreciated!