i used stdlib.h
but it says undefined symbol... whats wrong?
whats the correct header?
i used stdlib.h
but it says undefined symbol... whats wrong?
whats the correct header?
It's C99.
Quzah.
Hope is the first step on the road to disappointment.
c99.h?
No. You have to compile in C99 mode, because the function was introduced then. If you aren't, then your compiler doesn't see it.
Quzah.
Hope is the first step on the road to disappointment.
thanks sir...
but i used atol(); instead... works fine for my number which is like 9 digits
If your number is never beyond 9 digits, why are you using long long? It just takes up twice as much space for, in which you will store all zeros (or ones if your number is signed and negative, perhaps). I would suggest using "long" instead of long long. It is fine for up to 9 and a bit digits (that is 9 digits starting with either 1 or 3 in full range of 0..9 on all the other digits).
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.