In two languages C and python3 I need to know How can i convert Gray code to its equal in binary?
For example 0111 in Gray code is equal to 0101 in binary.
Grey->Binary
0000->0000
0001->0001
0011->0010
0010->0011
0110->0100
0111->0101
In two languages C and python3 I need to know How can i convert Gray code to its equal in binary?
For example 0111 in Gray code is equal to 0101 in binary.
Grey->Binary
0000->0000
0001->0001
0011->0010
0010->0011
0110->0100
0111->0101
Python code to convert grey code to binary:
And as far as C, I have no experience so the best I can do is provide a link to some code that seems to work. includehelp.com/c-programs