## Find all elements in an array which are greater than other right elements

Introduction : In this tutorial, we will learn how to find all elements in an integer array which are bigger than all other elements present to the right. For example : [1,2,5,3,1,0] In this array, 5,3,1 and 0 are elements greater than all right elements. We will learn three different Read more…

## C program to find the sum of A.P. series

Introduction : A.P. or arithmetic progression series is a sequence of numbers in which each number is the sum of the preceding two numbers. For example, 2, 3, 5, 8, 13… is an A.P. or arithmetic progression series. In this tutorial, we will learn how to find the sum of Read more…

## C program to reverse an user provided number

Introduction : In this tutorial, we will learn how to reverse a number in C. Our program will take one number as input from the user, reverse it and print it out. With this program, we will learn how to use a while loop, how to read user inputs and Read more…

## How to find the duplicate elements in an array in linear time

Introduction : In this tutorial, we will learn how to find out the duplicate numbers in an array of positive integers in linear amount of time. This is one of the most commonly asked interview question. The array is given and its elements are in the range of 0 to Read more…

## C program to sort array in ascending or descending order using pointer

Introduction : In this C programming tutorial, we will learn how to sort elements of an array in ascending or descending order using C pointer. The program will take the array inputs from the user and sort the array in ascending or descending order.   Pointer in C : A Read more…

## How to write a multi-line Macro in C

Introduction : Multi-line macros are useful in many ways. For example, if you need a single if-else statement in different parts of your program, you can define a macro with the if-else condition. In this tutorial, we will quickly learn how to write a multi-line macro in C with different Read more…

## Write a C program to draw spiral two column number pattern

Introduction: In this C programming tutorial, we will learn how to draw a spiral two column number pattern. This pattern looks like below: You can see that the numbers in the pattern are continuous but in spiral order. This is a beginner level C program and with it, you will Read more…

## C program to print half right angled triangle or half pyramid

C program to print half pyramid or half right angle triangle : In this C programming tutorial, we will learn how to print a half pyramid or half right angle triangle using a special character or any other character. In this tutorial, we will learn how to print a half Read more…

## C program to remove one specific element from an array

Remove one specific element from an array in C: In this C programming tutorial, we will learn how to remove one specific element from an array in C. The algorithm of the program will be like below : Ask the user to enter the total number of elements to add. Read more…

## C program to count even and odd numbers in a user input array

Count odd and even number in an array in C: In this C programming tutorial, we will learn how to count the odd and even numbers in an array. The program will populate the array taking inputs from the user and it will print out the even and odd count. Read more…