Write a c recursive function for generating an n-bit gray


In general, n-bit Gary code: (1) Reverse copy the (n-1)-bit Gray code: (2) Add 0 to the left of the first half and add 1 to the left of the second half.

Write a C++ recursive function for generating an n-bit Gray code using the above algorithm. You must use the code (attached). Do not use other algorithm nor copy form what you find online. I will not accept your assignment you do not use this algorithm.

Must use same ALGORITHM will NOT accept if you use other algorithms.

Attachment:- Code.rar

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c recursive function for generating an n-bit gray
Reference No:- TGS02362854

Expected delivery within 24 Hours