Answer:
See explaination
Explanation:
void bin2dec(char *s) {
int i = 0, num = 0;
while (s[i]) {
num *= 2;
num += s[i] - '0';
i++;
}
printf("%d\n", num);
}
The program Implement function bin2dec that takes a binary number bin_num as a string argument and prints out the corresponding decimal number.
They add clarifying information to a document. They provide details the reader may be unfamiliar with, and saving them from having to look them up (words, places or sources.)
Answer:
I think its 1 to 4 2 to 3 3 to3 2 to 2 1 to 1
Explanation: