0 Members and 5 Guests are viewing this topic.
int numPow(int in1[], int in2[], int output[], int in1len, int in2len)
int *ans = malloc(4); // One intint ansLen = numPow(in1, in2, ans, numInts1, numInts2);
int a;int b = 2000000000; // Still within rangeint c = 2000000000; // Still within rangea = (b * c) % 10000000000; // Last 10 digits of the product
Also, (Not really related) If you have:Code: [Select]int a;int b = 2000000000; // Still within rangeint c = 2000000000; // Still within rangea = (b * c) % 10000000000; // Last 10 digits of the productDoes that work, or will it cause overflow? I am wondering because right now, I am storing numbers as arrays of ints with 4 digits in each int, which is quite inefficient.