I'm trying to convert a binary number into a decimal number. I have an algorithm that works for smaller numbers because I store the input as a long long int. Unfortunately, that isn't enough for a larger binary number. I think the best way to store it is as an array, but I don't really know how to use variable length arrays. Can anyone show me how to store the input and determine when I've reached the end of the array? I need the end of the array so I can start doing calculations on it. I'll probably reverse the array to start at the end and work to array[0].