C Programming

How to Find Length of a Linked List? — step-by-step Programming tutorial on Progressive Robot

How to Find Length of a Linked List?

What is a Linked List? A linked list is a linear data structure used for storing collections of data Successive elements are connected by pointers The last element points to NULL Each element is a separate object and is called a Node Each node in a linked list comprises of two parts Data Reference to […]

Read more
How To Implement a Sample Hash Table in C/C++ — step-by-step Programming tutorial on Progressive Robot

How To Implement a Sample Hash Table in C/C++

Introduction A hash table in C/C++ is a data structure that maps keys to values. A hash table uses a _hash function_ to compute indexes for a key. You can store the value at the appropriate location based on the hash table index. <!– –> The benefit of using a hash table is its very […]

Read more
Height of Binary Tree in C/C++ — step-by-step Programming tutorial on Progressive Robot

Height of Binary Tree in C/C++

The height of a Binary Tree is defined as the maximum depth of any leaf node from the root node. That is, it is the length of the longest path from the root node to any leaf node. Let us consider the below Binary Tree. Since the leaf nodes corresponding to the maximum depth are […]

Read more
Initialize an Array in C — step-by-step DevOps tutorial on Progressive Robot

Initialize an Array in C

URL: https://www.progressiverobot.com/initialize-an-array-in-c/ In this article, we'll take a look at how we will initialize an array in C. There are different ways through which we can do this, so we'll list them all one by one. Let's get started! Method 1: Initialize an array using an Initializer List An initializer list initializes elements of an […]

Read more
Using INT_MAX and INT_MIN in C/C++ — step-by-step Programming tutorial on Progressive Robot

Using INT_MAX and INT_MIN in C/C++

URL: https://www.progressiverobot.com/int-max-min-c-plus-plus/ In this article, we'll take a look at using INT_MAX and INT_MIN in C/C++. These are actually useful macros which represent the maximum and minimum integer values. Let's take a look at it, using some examples. Using INT_MAX and INT_MIN INT_MAX is a macro which represents the maximum integer value. Similarly, INT_MIN represents […]

Read more
Level Order Traversal in a Binary Tree — step-by-step Programming tutorial on Progressive Robot

Level Order Traversal in a Binary Tree

URL: https://www.progressiverobot.com/level-order-traversal-in-a-binary-tree/ Level Order Traversal is one of the methods for traversing across a Binary Tree. In this article, we shall look at how we can implement this algorithm in C/C++. But before that, let us have our concepts covered. Building the concepts A Binary Tree is a data structure where every node has at-most […]

Read more
Linear Search Algorithm and Implementation in C — step-by-step Programming tutorial on Progressive Robot

Linear Search Algorithm and Implementation in C

URL: https://www.progressiverobot.com/linear-search-algorithm-c/ Linear Search is basically a sequential search algorithm. In this algorithm, the key element is searched in the given input [array](/community/tutorials/arrays-in-c) in sequential order. If the key element is found in the input array, it returns the element. Linear Search Algorithm Linear_Search ( Array X, Value i) Set j to 1 If j […]

Read more
Using the puts() function in C/C++ — step-by-step Programming tutorial on Progressive Robot

Using the puts() function in C/C++

URL: https://www.progressiverobot.com/puts-function-c-plus-plus/ Introduction Hello reader! Today in this tutorial we are going to discuss about the vastly used puts() function in for both C and C++ programming languages. Even though the printf() and cout functions in both C and C++ are prominent for printing variables, numbers, lines, etc. they ultimately lack behind while printing strings […]

Read more
CHAT