C program to find total number of sub-array with product less than a value

In this tutorial, we will learn how to find the total number of subarray with product less than a specific value. For example, lets take a look at the array 9,5,4,7,2. Suppose, we are checking for subarray with product less than 50. We will have the following subarrays :. value

Read

C programming structure explanation with example

The structure is a user-defined data type in C. For example, suppose we want to store numbers from 1 to 100. We will use one integer array of size 100. But if we need to store the details of 100 students, each detail will include name, age, and marks for a specific subject, what we will do? To solve such problems, we can use Structure.

Read

C program to remove the head node or first node from a linked list

In this C programming tutorial, we will learn how to remove the first node or first item from a linked list. Linked lists are ordered set of elements.Each element is known as a node. Each node contains one or more values and the address of the next node. In the C program below, we are first adding elements or nodes to a linked list. Next, we are deleting the first node from the list. Let's take a look at the below image to learn how nodes are linked to each other :.

Read

C program to remove the first character of each word of a string

In this tutorial , we will learn how to remove the first character of each word from a string in C. We are going to use two arrays in this program. The first array will hold the user input and the second array will hold the modified final string. Let's take a look into the algorithm first :.

Read

C program to print a star or X pattern using any character

In this C programming tutorial, we will learn how to print a star or X pattern using start, * or any other character.

Read

C program number pattern example for beginner

In this C programming tutorial, we will learn how to print a pattern like below :.

Read

C program to print from A to Z with lower and upper case alternatively

In this C programming tutorial, we will learn how to print from A to Z in an alternative case for each character. For example, if the first character is A, second should be b, the third element should be C etc. That means, it will be like A b C d E f.....To solve this problem, we are going to use the below algorithm :.

Read

C program tutorial to print a number pattern

In this tutorial, we will learn how to print a pattern like below using C programming language :.

Read

C program to create and iterate through a linked list

In this C programming tutorial we will learn how to insert elements into a linked list and how to traverse through the linked list. The linked list is an ordered list of elements.

Read

C program to explain how fmod and modf function works

In this C programming tutorial, we will learn how fmod and modf function works, what arguments these functions take and what are the return values. Function fmod is defined as :.

Read