| | |
Matrix sorting and factorial
![]() |
>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?
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?
![]() |
Similar Threads
- matrix multiplication help.. (C)
- Sorting 2D Dynamic array of integers , Snake Style (C)
- Factorial? (C++)
- The Matrix & Philosophy (Geeks' Lounge)
- Enter the Matrix-not working (Windows NT / 2000 / XP)
- MATRIX REVOLUTIONS in the IMAX (Geeks' Lounge)
- re: Sorting Algorithms (C++)
- Microsoft Releases Web Matrix (ASP.NET)
Other Threads in the C Forum
- Previous Thread: IPC/socket beginner
- Next Thread: warning:Warning: assignment from incompatible pointer type
| Thread Tools | Search this Thread |
#include adobe ansi api array asterisks binarysearch changingto char character cm copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory dynamic execv feet fgets file fork forloop frequency function getlasterror givemetehcodez global grade graphics gtkgcurlcompiling hacking hardware highest histogram i/o include incrementoperators infiniteloop input interest kernel keyboard kilometer license linked linkedlist linux linuxsegmentationfault list locate logical_drives looping loopinsideloop. lowest match matrix meter microsoft motherboard mqqueue number odf opensource owf pattern pdf performance pointer posix probleminc process program programming radix recursion recv repetition research reversing scanf scripting segmentationfault sequential shape socket socketprograming standard string systemcall threads turboc unix user voidmain() wab windows.h windowsapi





