Binary Search Program in c

| Last Updated: | In: C Programming Tutorial


I got some tutorial request from my website readers which are the final year student of Computer science from UPTU (Uttar Pradesh Technical University) for sorting the array using binary search so that I am sharing this program for binary search in c programming language. Below are the questions: 1) How to write a binary …

Print Number Triangle in C

| Last Updated: | In: C Programming Tutorial


In the previous tutorial, I have shared a program to print the star triangle using recursion in c programing language. Like the Star triangle, I am going to share program to display the triangle using the number in c programming language. Let’s create a program to print the number triangle using the c programming language. …

Check Leap Year in C

| Last Updated: | In: C Programming Tutorial


I assume that you have knowledge of C programing language operators and the If.. else statement of c programming. A leap year comes after every 4 years. In the mathematical term, you can say A year which is divisible by 4 except the century years (years which ends with 00). Program to check entered year …

Check Whether a Number is Even or Odd

| Last Updated: | In: C Programming Tutorial


In this tutorial, you will learn how to write a program in c language to check whether a number is an even or odd number. I have used the IF…Else statement to check the even and odd number. Check Whether a Number is Even or Odd

Output is:

Related Programs: C Program: Find …

Armstrong Number Program in C

| Last Updated: | In: C Programming Tutorial


Armstrong number is number which is the sum of its digit raised to the power of n itself. Here is the explanation: Then let’s check the given number 153 is an Armstrong Number or not an Armstrong Number. 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153. There are many numbers …

Palindrome Program in C

| Last Updated: | In: C Programming Tutorial


Palindrome number is a number which is the same number after the reverse of any number. There are many numbers which are palindrome number like 121, 131, 151, 34543, 48984, and etc.. How to write the Palindrome number program There is an algorithm to write the palindrome number program in c programming language. See the …

Pointers in C

| Last Updated: | In: C Programming Tutorial


A Pointer in C programming language is playing a key role. A pointer is very easy and fun to learn while learning the C programming. As you know, every variable memory location and also every location have some defined address, which can be accessed by using the ampersand (&) operator before the variable name. What …

Fibonacci Series Program in C

| Last Updated: | In: C Programming Tutorial


Sometimes back, one of my user our website is asked to create a program in c to get the Fibonacci series of any given number. Additionally, I have also shared a program to get the Fibonacci series of first 15 numbers without using the recursion. What is Fibonacci Series Fibonacci number is the number of …

Print Star Triangle in C

| Last Updated: | In: C Programming Tutorial


In this tutorial, you will learn how to create star triangle pattern by using the nested for loop in C programing language. How to Print Star Triangle in C

The Output of above program is:

Another C program to print the star triangle pattern in reverse order by using the nested for loop …

If Else Statement in C

| Last Updated: | In: C Programming Tutorial


If Else Statement in C Programming Language In this tutorial, you will learn how to execute the If Else statement in C programming language. I have explained with some real time examples of If Else programs. In the below diagram, If the “IF” condition satisfy, then IF statement will execute otherwise Else statement will execute …