Ok so I'm making this program and its pretty much just converting from one base number to another (i.e. base 16 to base 10[normal]). Anyhow, that's not really important, what is is that my program is crashing.... now the weird thing is it works fine with certain input. As long as the third variable is a LETTER it works fine. The letter represents a number in some bases and the program runs and works fine (as far as i got it) with this input. but if i put in a number the program completely crashes. even when i put in a test printf at the very beginning of the code it doesn't get read..... idk wtf would cause that... i've never had a problem like this (i've only had a year programming experience in java.. very new to C). If anyone could help i got them on reps for life.
#include <math.h> #include <s - Anonymous - tGcu2Zeg - Pastebin.com
input 16 10 EE
output so far: 238 (converted into base 10..haven't got any farther yet since i'm trying to debug this).
what doesn't work....
input 16 10 1 (or any number for last input)
program acts like its continuously looping and i've tried putting print statements everywhere but nothing gets printed...don't know whats wrong