Question: Write a function DecimalToBinary that takes an integer number D and an long integer pointer B as parameters. The function converts the given integer decimal

Write a function DecimalToBinary that takes an integer number D and an long integer pointer B as parameters. The function converts the given integer decimal number to a binary number(in the form of long integer and consists of 0 s and 1 s ) and stores at the pointer B.
Note:- The function does not return anything, it only stores the equivalent binary number at pointer B in the form of long integer and no zero should be come at the beginning of binary number for any decimal number expect for decimal 0.
Write a function DecimalToBinary that takes an

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 Programming Questions!