Startertutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

C program to find 2’s complement of a binary number

Categories: Arrays. No Comments on C program to find 2’s complement of a binary number

In this article we will learn to implement a C program to find 2’s complement of a binary number. A C program is provided below which reads a binary number and prints its 2’s complement.   Program is as follows: //C program to find the 2's complement of a given binary number #include<stdio.h> #include<conio.h> void […]

Read the rest of this entry »

C program to swap two numbers without using a temporary variable

Categories: Others. No Comments on C program to swap two numbers without using a temporary variable

In this article we will learn to implement a C program to swap two numbers without using a temporary variable. A C program is provided below which reads two numbers and interchanges them with using a temporary variable.   Program is as follows: //C program to swap two numbers without using a temporary variable #include<stdio.h> […]

Read the rest of this entry »

C program to find the largest of three numbers using ternary operator

Categories: Others. No Comments on C program to find the largest of three numbers using ternary operator

In this article we will learn to implement a C program to find the largest of three numbers using ternary operator. A C program is provided below to read three numbers and print the biggest or largest of these numbers.   Program is as follows: //C program to find the largest of three numbers using […]

Read the rest of this entry »

C program to print all values in an array less than given number

Categories: Arrays. No Comments on C program to print all values in an array less than given number

In this article we will learn to implement a C program to print all values in an array less than given number. A C program is provided below to print all the values in an array which are less than the given key element.   The program is as follows: #include <stdio.h> #include <conio.h> int […]

Read the rest of this entry »