C program to print pyramid using star or any other character

C program to print a pyramid using star or any other character : In this tutorial, we will learn how to print a pyramid using star ‘*’ or any other character using ‘C programming language’. The user will input the height of the pyramid and we will print the pyramid Read more…

C program to add two numbers using their addresses

C program to add two numbers using their addresses : In this tutorial, we will learn how to add two numbers using addresses in C programming language. Mainly we will learn how to access the values of one address in C. Let’s take a look into the algorithm first : Read more…

C program to find the remainder without using modulo operator

C program to find remainder without using modulo operator : In this tutorial, we will learn how to find the remainder without using modulo operator (%) in C programming language. The algorithm that we are going to use is as below : Algorithm : 1. First read the number and Read more…

C program to count number of 1 using Brian Kernighan’s Algorithm

C program of Brian Kernighan’s Algorithm to count number of 1 in binary representation of a number : In this example, we will learn how to find the count of 1 in the binary representation of a number. For example, the binary value of 3 is 0011 and total number Read more…