Question: Write a function BIN2DEC (binary to decimal) that accepts an array of characters representing a binary number. The maximum number of elements is 8 and

 Write a function BIN2DEC (binary to decimal) that accepts an array

Write a function BIN2DEC (binary to decimal) that accepts an array of characters representing a binary number. The maximum number of elements is 8 and the possible value of the each character is 'O' or '1. The function prototype is int BIN2DEC (char *str) if the user inputs 0011101 00111012-1x 24 +1x 23 +1 x 22 +0x 21 +1 x20 2910

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!