Dynamic Arrays

rohan rohan076 at gmail.com
Sat Sep 30 23:30:29 CEST 2006


Hello guys,
           I'm coding a program in C using GMP. I wanted to create a dynamic
array, that is an array of unknown size. In my project I'll have to store
mpz_t integers into this array. How many integers i'll have?? I dont know!
how do i go about solving this problem.

I know that mpz_t array[10]; can be done, but I want to initialize and array
in which i can keep adding elements, the number of elements can be 1 or xyz.

Thanks in advance,
Rohan.
-- 
View this message in context: http://www.nabble.com/Dynamic-Arrays-tf2363030.html#a6583289
Sent from the Gnu - GMP - Discuss mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20060930/0e52b61a/attachment.html 


More information about the gmp-discuss mailing list