C Program to Add 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 1. Take two binary numbers as input. 2. Add each bits from the two binary numbers separately starting from LSB. 3. The operations may be as follows. a) (0+0)=0, … Read more

advertisement

C Program to Print Binary Equivalent of an Integer using Recursion

This is a C program to print binary equivalent of an integer using recursion. Problem Description This C program, using recursion, finds the binary equivalent of a decimal number entered by the user. Problem Solution Decimal numbers are of base 10 while binary numbers are of base 2. Program/Source Code Here is the source code … Read more

advertisement

C Program to Multiply Two Binary Numbers

This is a C program to Calculate Multiplication of two Binary Numbers. Problem Description This program takes two binary numbers as input and multiply them. Problem Solution 1. Take two binary numbers as input. 2. Do the repeated addition of binary numbers. 3. The result is the output. Program/Source Code Here is source code of … Read more

advertisement

C Program to Get IP Address

This is a C Program to display the IP Address of the system. Problem Description This program displays the IP address of the system. Problem Solution 1. Create a socket to define network interface IPv4. 2. Define the IPv4 address type. 3. Define the port name where network is attached. 4. Access the network interface … Read more

advertisement

C Program to Increment by 1 to all the Digits of a Given Integer

This is a C program to Increase 1 to all of the given Integer Digit. Problem Description This program increases 1 to all of the given integer digit and print the sum of all digits. Problem Solution 1. Take a integer as input. 2. Obtain its remainder and quotient. 3. Increment the remainder by 1 … Read more

advertisement

C Program to Display the ATM Transaction

This is a C program to display the ATM transaction. Problem Description This C Program performs ATM transaction. The types of ATM transaction are 1) Balance checking 2) Cash withdrawal 3) Cash deposition. Problem Solution 1. Firstly initialize the ATM pin and amount with some random number. 2. Take the ATM pin as input. 3. … Read more

advertisement

C Program to Check if Two Numbers are Equal

This is a C program to accept two integers and check if they are equal. Problem Description This program accepts two integers and check if they are equal or not. Problem Solution 1. Take the two integers as input. 2. Using if,else statements check if they are equal or not. 3. Print the output accordingly … Read more

advertisement

C Program to Illustrate how User Authentication is Done

This is a C program to illustrate user authentication. Problem Description This C program asks for the user name & password and displays the same to illustrate user authentication. Problem Solution 1. Take the user name & password as input. 2. Print the each character of password as * while receiving it. 3. Now print … Read more

advertisement

C Program to Swap Two Numbers

Swapping two numbers in C programming means swapping the values of two variables. For example, there are two variables m & n. Value of m is “2” & value of n is “3”. Before Swapping: m value = 2; n value = 3 After Swapping: m value = 3; n value = 2 Problem Description … Read more

advertisement

C Program to Count the Number of Vowels and Consonants in a Sentence

This is a C program to count the number of vowels & consonants in a sentence. Problem Description This program takes the sentence as input and counts the number of vowels & consonants in a sentence. Problem Solution 1. Take the sentence as input. 2. Using for loop and if,else statements check for vowels, consonants … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.