Login to ask a question from C programs on various integers

C Program to Find the Sum of two Binary Numbers:

This is a C program to Find the Sum of two Binary Numbers.

Problem Description

This program finds the sum of two binary numbers.

Problem Solution

  •  Take two binary numbers as input.

  •  Add each bits from the two binary numbers separately starting from LSB.

  • The operations may be as follows.

    • (0+0)=0,

    •  (1+0)=1,

    • (1+1)=0 and 1 will be remainder.

Program/Source Code

/*

 * C Program to Find the Sum of two Binary Numbers

 */

#include

 

int main()

{

 

    long binary1, binary2;

    int i = 0, ....

Show More
Previous Question Next Question
🔗

Similar Questions

From C programs on various integers · C programming

View All
WhatsApp