Base Number Conversion Algorithms and Implementation
Problem B: Arbitrary Base Conversion
This code converts a number from one arbitrary base to another.
Implementation
#include <stdio.h>
#include <string.h>
// Convert from base `src_base` string `src_num` to decimal integer.
int convert_to_decimal(int src_base, const char *src_num) {
int result = 0;
int place_value = 1;
...
Posted on Mon, 18 May 2026 01:51:55 +0000 by thebluebus