No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
QUE1: If I have declared a really large aaray inside a function, would it be automatically deallocated on exit the scope of the function?? QUE2:While using mpz_class in GMP is the memory automatically deallocated after exiting the scope i.e. are the appropriate destructors for giving the memory back to O.S … |
|
I am writing a code in c++ unix environment using gmp for impelementing quadratic sieve I have many global variables i.e the number to be factorised and some arrays, sievelength,factorbase siz etc. During the first part of the program, the program simply calculates the factor base implemented through a fucntion … |