I Have found a way to make a n-bit integer and do arithmetic on the integers, But I don't know how to print those integers, My method to make a n-bit integer is just to make an array of, lets say char's, and make the array (size of array elements) / n elements long. Does anyone know how to print these?
- I had an idea to store the powers of 2 ^ x as strings but I realized that would not work.
You can't use standard library functions to convert to string or print in base != 2, 4, 8, 16 (generally 2^n).
If you want to print using those bases you can easily write your own function (example one assuming little endian)