Chapter:

C-programs-on-various-integers

C Program to Find 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 <stdio.h>

 

int main()

{

 

  &nb....

Show More

All Chapters

View all Chapter and number of question available From each chapter from C-programming-