For example:
int main(void) {
Int i = Int(3); //3-bit i
You could always try to use integer and float manipulation using arrays. If the number is too big for array initialization, you could use the malloc();
function.
Please Note: This method is not very fast, because we will be allocating memory in the heap. You will also have to write your own mathematical operation functions, because I am not quite sure on how to implement it efficiently. SEE MORE BELOW
#include
#include
#define MAX_DIGIT_COUNT 1000
int main()
{
int* big_num = (int*)malloc(sizeof(int) * MAX_DIGIT_COUNT); //allocate memory
for(int x; x
Please note: This is just a crude way of implementing arbitrary-sized number support in pure C.