:
#include <stdlib.h> // malloc
#include <stdio.h>
#include <gmp.h>
#define LENGTH 100000
int main ()
{
mpz_t *A;
mpz_t temp;
mpz_init(temp);
A = malloc(LENGTH * sizeof(mpz_t));
if (A==NULL) {
printf("ERROR: Out of memory\n");
return 1;
}
mpz_set_ui(temp, 121277777777777777);
mpz_set(A[4], temp);
mpz_set_str(A[5], "19999999999999999999999999999999999999999999999999992",10);
gmp_printf ("%Zd\n",A[4]);
gmp_printf ("%Zd\n",A[5]);
free(A);
mpz_clear(temp);
return 0;
}
?