adspace


How to convert binary to gray code and vice-verse?

Answer Posted / Sunil Singh Chauhan

To convert Binary to Gray Code, follow these steps: 1. For the leftmost bit, do not perform any transformation. 2. For each subsequent bit, compare it with the corresponding bit on the left. If they are the same, keep the current bit as is; otherwise, invert it. To convert Gray Code back to Binary, you can follow these steps: 1. Take the first bit (leftmost) as it is. 2. For each subsequent bit, compare it with the corresponding bit on the right. If they are the same, keep the current bit as is; otherwise, invert it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i want to know the rrb section engg. the question paper also with interview questions.pls mail me at shekharmunna130@gmail.com

1897


documentation on improved trace buffer via Selective Data Capture Using 2-D Compaction for Post-Silicon Debug

2084


plz send me questions related to vlsi backend jobs....

3674


i want computer associates placement papers from u? pls post to me.

2799


i want to know the syllabus for management trainee exam,vizag steel plant,2009

3584


hi i wnt to know the general hr questions aked in wipro with answers

2050


Hi Friends pls give information regarding BARC written test. am attending written exam on 1st September 2009.mail me on sanjaykm1982@indiatimes.com/sanjaykumar.b.mathur@relianceada .com

2088


I want previous rrb enteranse exam papers in junior engineer(Signal/Tele/c&w). please send that papers to my id dkg_unnao@yahoo.com

3424


hi.i m priya ,got shortlisted for syndicate bank po interview.When can we expect the interview to happen? n wat shud we our main focus while preparing 4 it.....need to revise btech subjects??Do they expect much for Banking Terminology.plz provide me someuseful links in this regard.my interview on 25 sep , plz send the interview details ,who are all before going to attend the interview ,,,it will be very useful for me .. thanks Priyasambanthar@gmail.com

1904


please send me the previous question papers of ntpc writen test for ece

2336


what can made electronic car by your company?

1937


send me jto(telecom) exam papers

2073


hi all iam going to give AAI tech exam i did my BE in electronics and communication if any one have any sample papers and SYLLABUS for it please plzzzzzzzzzzzzz for my career mail me at neha_sheokand11@yahoo.co.in

2045


Can any one please send me the hpcl question papers or pattern for ece branch please mail to sweetyastweety@gmail.com

2246


sir plz send me BPCL recruitment(Engineering Trainee Electronics & Communication) sample question papers & Topics as early as possible

4716