So, given this input:
43890758927436598726435872648957245892643
834589723465892743658972346587243568274599
I should assign each of these two to a linked list.
I actually have no clue. I know in C++ I can use the getline method. Is there something similar in C?
If you're working with numbers that won't fit into 64 bits, then you need to simply store those numbers as a string. As a quick (BUT INSECURE) way to do this, you can simply do:
scanf will dynamically allocate num, so you can use num in your program, as long as you remember to free it later (if you're worried about memory consumption). Checking the return value also ensures you do in fact read in 2 numbers.