Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int BintoDec(int b[32], int n)
- {
- int x = 0;
- for (int i = 0; i < n; ++i)
- {
- x = x + (b[i] << x - i - 1);
- }
- return x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement