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 reverse an array in place

Categories: Arrays. No Comments on C program to reverse an array in place

In this article we will learn to implement a C program to reverse an array in place (without using a temporary array. A C program is provided below to reverse an array in place. Program is as follows: #include<stdio.h> int main() { int array[20]; int n; printf("Enter number of elements: "); scanf("%d", &n); printf("Enter array […]

Read the rest of this entry »

C program to find the largest and smallest number in an array

Categories: Arrays. No Comments on C program to find the largest and smallest number in an array

In this article we will learn to implement a C program to find the largest and smallest number in an array. A C program is given below which reads a list of integers and prints the largest and smallest number.   The program is: /* * C program to find the largest and smallest numbers […]

Read the rest of this entry »

C program to add and multiply two compatible matrices

Categories: Arrays. No Comments on C program to add and multiply two compatible matrices

In this article we will learn to implement a C program to add and multiply two compatible matrices. A C program is provided below to read two matrices, add them and then multiply them.   Program is as follows: //C program to add and multiply two compatible matrices #include<stdio.h> #include<conio.h> void main() { int a[3][3], […]

Read the rest of this entry »

C program to sort elements of an array using selection sort

Categories: Arrays. No Comments on C program to sort elements of an array using selection sort

In this article we will learn to implement a C program to sort elements of an array using selection sort. A C program is provided below which reads a list of numbers and prints the sorted list of numbers using selection sort algorithm.   Program is as follows: //C program to sort an array of […]

Read the rest of this entry »

C program to search an element using binary search

Categories: Arrays. No Comments on C program to search an element using binary search

In this article we will learn to implement a C program to search an element using binary search. A C program is provided below which illustrates using binary search for searching a given element.   Program is as follows: //C program to search for an element using binary search #include<stdio.h> #include<conio.h> void main() { int […]

Read the rest of this entry »

C program to interchange the largest and smallest elements in the array

Categories: Arrays. No Comments on C program to interchange the largest and smallest elements in the array

In this article we will learn to implement a C program to interchange the largest and smallest elements in the array. A C program is provided below that reads a list of numbers and swap the largest and smallest element in the array.   Program is as follows: //C program to interchange the largest and […]

Read the rest of this entry »

C program to convert decimal to binary number

Categories: Arrays. No Comments on C program to convert decimal to binary number

In this article we will learn to implement a C program to convert decimal to binary number. A C program is provided below to read a decimal number and print its equivalent binary number.   Program is as follows: //C program to display the binary equivalent of a given decimal number #include<stdio.h> #include<conio.h> void main() […]

Read the rest of this entry »

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 »