0

I've a homework that I have to do, but I'm wondering if in C we have some function that will actually convert the 8 bit binary like for example 01010111 which is 87 and in letter is W

I'm going to be given a big set and I just have to store binary number in one array and convert after that I will combine all of them and return to the main().

4

1 回答 1

2

是的,该strtol函数可用于解析二进制字符串的文本表示,方法是提供2最后一个参数(指示字符串表示以 2 为底的数字)。

于 2012-05-16T00:30:42.567 回答