C program to find Binary number of a Decimal number
Given an integer number and we have to find/print its binary value using C program.
In this program, we are finding the Binary values of 16 bits numbers, the logic is very simple – we have to just traverse each bits using Bitwise AND operator. To traverse each bit – we will run loop from 15 to 0 (we are doing this to print Binary in a proper format).
Binary from Decimal (Integer) number using C program
Output
need an explanation for this answer? contact us directly to get an explanation for this answer