>wen i use larger values say 245323465 etc. the sorted matrix returned garbage values.. y s that?
Garbage values usually mean that you either didn't initialize the value in the first place, or you overflowed it through calculations. I'm guessing that you're seeing overflow errors that should be checked for if you're using built in data types, or removed by using an arbitrary length math library.
>n how do i find factorial for 300 n bigger numbers??
Use an arbitrary length math library or write one yourself. C arithmetic types have very hard (and sometimes painfully small) limits.
>i'm not able to store them as long int also..
How are you storing them now and what are your storage requirements?
Reputation Points: 44
Solved Threads: 8
Junior Poster in Training
Offline 62 posts
since Oct 2007