C Programming

fgets() and gets() in C Programming — step-by-step DevOps tutorial on Progressive Robot

fgets() and gets() in C Programming

Introduction We all are familiar with the scanf() function. It is the main function applicable to take basic user inputs. Even though scanf() works great while taking inputs such as integer, character, float etc. It certainly falls behind while taking string inputs containing whitespaces. Let's take a look at an example, #include<stdio.h> int main() { […]

Read more
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
CHAT