Ok..this is just 2 for loops and I cant figure out why its not even making it into the 2nd loop. I goes from 5 to 0 at --, right? No semicolons in the wrong spot...what the heck?!
Code:
for(j=0; j<total/6; j++) { /* loop 1 */
//radix_total=0;
for(i=5; i=0; i--) { /* loop 2 */
printf("test line");
/* its not evening making it into this 2nd loop */
fscanf(inputfile, "%d", next_char);
printf("next_char has %d\n", next_char);
if (next_char == 1)
radix_total = radix_total + (int)pow(2, i);
}
/* stuff after exiting loop 2 which is working fine */
any advice appreciated. The radix total line just happened to be commented out when I copied it here. Makes no difference either way.