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 and an long integer pointer B as parameters. The function converts the given integer decimal number to a binary numberin the form of long integer and consists of s and 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
