C Program to calculate the power without using POW function

C Program To Calculate The Power Without Using Pow Function

In this tutorial, we are going to learn a writing program in C to calculate the power of a given number without using the POW method. Here we will write our own logic to calculate the power of a given number. To calculate the power we need two numbers. One is the base number and … Read more

Pascal Triangle Program in C with explanation

In this tutorial we are going to learn writing program in C to print pascal triangle. But before directly moving on writing program first lets know What is Pascal Triangle? Pascal Triangle starts with row n = 0 where there is only one entry 1. And it grows row-wise toward the right by adding the … Read more

Bubble sort program in C with explanation

In this tutorial, you will learn how to write Bubble sort program in C with explanation. Before going on logic of bubble sort or program first lets understand how bubble sort works? What is the space and time complexity of it? What is Bubble Sort? Bubble sort is very easy and basic sorting technique. In … Read more

Insertion sort program in C with explanation

In this tutorial, you will learn how to write Insertion sort program in c with explanation. Before going on logic of insertion sort or program, first lets understand how insertion sort works? What is the space and time complexity of it? What is Insertion Sort? Insertion sort is very easy and basic sorting technique. In … Read more

C program to find middle element of linked list in single pass

In this tutorial, you will learn how to write C Program to find middle element of a linked list in single pass. Below are the approach which we will be follow to write our program: So first of all we will take some inputs from the users and then we will try to find the … Read more

C program to remove duplicate elements in an array

C Program To Remove Duplicate Elements In An Array

In this tutorial, you will learn how to write C program to delete duplicate elements in an array. Below are the approach which we will be follow to write program: How our program will behave? Our program will take an array as an input. And then count the occurrence of each elements. After the count … Read more

C program to find second largest number in an array

C Program To Find Second Largest Number In An Array

In this tutorial, you will learn how to write C program to find second largest number in an array. Below are the approach which we will be follow to write our program: How our program will behave? As we have already seen above our logic to find the second maximum number of an array. Our program … Read more

C Program to check given String is palindrome or not

C Program To Check Given String Is Palindrome Or Not

In this tutorial, you will learn writing program in the C to check whether a given string is palindrome or not . The Complete logic behind to check whether a given string is palindrome or not: Now before moving on writing the program first you should know What is String palindrome? A String is called … Read more

Anagram program in C with explanation

In this tutorial, you will learn how to write a program in the C to check the given strings are Anagram or not. The Complete logic behind it is : Now before moving on writing the program first you should also know What is Anagram in String? Two strings can be called Anagram if the … Read more

Prime number program in C with explanation

C Program to Check given number is Prime number or not

In this tutorial we are going to learn how to write a program to check whether a given integer number by user is a prime number or not in C programming language. If given number is prime then our logic will assign value 0 to a temp variable and will print “number is prime” and … Read more